Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/system/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/system/make.pyo

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
ed
�Zd�Zd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys�
---
module: make
short_description: Run targets in a Makefile
requirements:
- make
version_added: "2.1"
author: Linus Unnebäck (@LinusU) <[email protected]>
description:
  - Run targets in a Makefile.
options:
  target:
    description:
      - The target to run.
      - Typically this would be something like C(install),C(test) or C(all)."
    type: str
  params:
    description:
      - Any extra parameters to pass to make.
    type: dict
  chdir:
    description:
      - Change to this directory before running make.
    type: path
    required: true
  file:
    description:
      - Use a custom Makefile.
    type: path
    version_added: '2.5'
s�
- name: Build the default target
  make:
    chdir: /home/ubuntu/cool-project

- name: Run 'install' target as root
  make:
    chdir: /home/ubuntu/cool-project
    target: install
  become: yes

- name: Build 'all' target with extra arguments
  make:
    chdir: /home/ubuntu/cool-project
    target: all
    params:
      NUM_THREADS: 4
      BACKEND: lapack

- name: Build 'all' target with a custom Makefile
  make:
    chdir: /home/ubuntu/cool-project
    target: all
    file: /some-project/Makefile
s# (t	iteritems(t
AnsibleModulecC`sD|j|d|d|jd�\}}}|t|�t|�fS(s�
    Run a command using the module, return
    the result code and std{err,out} content.

    :param command: list of command arguments
    :param module: Ansible make module instance
    :return: return code, stdout content, stderr content
    tcheck_rctcwdtchdir(trun_commandtparamstsanitize_output(tcommandtmoduleR
trctoutterr((s?/usr/lib/python2.7/site-packages/ansible/modules/system/make.pyR
Ns	+cC`s!|dkrdS|jd�SdS(s�
    Sanitize the output string before we
    pass it to module.fail_json. Defaults
    the string to empty if it is None, else
    strips trailing newlines.

    :param output: output to sanitize
    :return: sanitized output
    ts
N(tNonetrstrip(toutput((s?/usr/lib/python2.7/site-packages/ansible/modules/system/make.pyR[s
cC`stdtdtdd�dtdd�dtddd	t�d
tdd��dt�}|jdd	t�}|s�|jd
d	t�}n|jd}|jddk	r�gt|jd�D] \}}|dt|�^q�}ng}|jd
dk	r|d|jd
|g}n||g}|j	|�t
|dg|dt�\}}}	|jru|dk}
n9|dkr�t}
n$t
||dt�\}}}	t}
|jd|
dtd|d|	d|jdd|jdd|jdd
|jd
�dS(Nt
argument_specttargetttypetstrRtdictRtpathtrequiredtfiletsupports_check_modetgmaketmaket=s--files
--questionR
itchangedtfailedtstdouttstderr(
R	RtTruetget_bin_pathtFalseRRRRtextendR
t
check_modet	exit_json(Rt	make_pathtmake_targettktvtmake_parameterstbase_commandRRRR%((s?/usr/lib/python2.7/site-packages/ansible/modules/system/make.pytmainksF	
=
%			


t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.sixRtansible.module_utils.basicR	R)R
RR5t__name__(((s?/usr/lib/python2.7/site-packages/ansible/modules/system/make.pyt<module>s


 
		>

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]