??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
σ
ΰUdac @` s d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z d d
l Z d d
l
Z
d d l m Z d e
f d
YZ d Z e d k r© e n d
S( i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust communityt supported_byu8
---
module: bzr
author:
- AndrΓ© ParamΓ©s (@andreparames)
version_added: "1.1"
short_description: Deploy software (or files) from bzr branches
description:
- Manage I(bzr) branches to deploy files or software.
options:
name:
description:
- SSH or HTTP protocol address of the parent branch.
aliases: [ parent ]
required: yes
dest:
description:
- Absolute path of where the branch should be cloned to.
required: yes
version:
description:
- What version of the branch to clone. This can be the
bzr revno or revid.
default: head
force:
description:
- If C(yes), any modified files in the working
tree will be discarded. Before 1.9 the default
value was C(yes).
type: bool
default: 'no'
executable:
description:
- Path to bzr executable to use. If not supplied,
the normal mechanism for resolving binary paths will be used.
version_added: '1.4'
s
# Example bzr checkout from Ansible Playbooks
- bzr:
name: bzr+ssh://foosball.example.org/path/to/branch
dest: /srv/checkout
version: 22
N( t
AnsibleModulet Bzrc B` sS e Z d Z d d Z d Z d Z d Z d Z d Z d Z
RS( c C` s1 | | _ | | _ | | _ | | _ | | _ d S( N( t modulet parentt destt versiont bzr_path( t selfR
R R R
R ( ( sF /usr/lib/python2.7/site-packages/ansible/modules/source_control/bzr.pyt __init__D s
c K` s; | j j | j g | d | | \ } } } | | | f S( Nt cwd( R
t run_commandR ( R t args_listR t kwargst rct outt err( ( sF /usr/lib/python2.7/site-packages/ansible/modules/source_control/bzr.pyt _commandK s .c C` sA d | j } | j j | d | j \ } } } | j } | S( s% samples the version of the bzr branchs %s revnoR ( R R
R R t strip( R t cmdR t stdoutt stderrt revno( ( sF /usr/lib/python2.7/site-packages/ansible/modules/source_control/bzr.pyt get_versionO s
$c C` s t j j | j } y t j | Wn t k
r9 n X| j j d k rp d d | j | j | j g } n d | j | j g } | j | d t
d | S( s3 makes a new bzr branch if it does not already existt headt branchs -rt check_rcR ( t ost patht dirnameR t makedirst ExceptionR
t lowerR R t True( R t dest_dirnameR ( ( sF /usr/lib/python2.7/site-packages/ansible/modules/source_control/bzr.pyt cloneW s
!c C` s_ d | j } | j j | d | j \ } } } | j } t d | } t | d k S( Ns %s status -SR c S` s t j d | S( Ns ^\?\?.*$( t ret search( t c( ( sF /usr/lib/python2.7/site-packages/ansible/modules/source_control/bzr.pyt j s i ( R R
R R t
splitlinest filtert len( R R R R R t lines( ( sF /usr/lib/python2.7/site-packages/ansible/modules/source_control/bzr.pyt has_local_modsd s
$c C` sH | r) | j r) | j j d d n | j d g d t d | j S( s
Resets the index and working tree to head.
Discards any changes to tracked files in the working
tree since that commit.
t msgs/ Local modifications exist in branch (force=no).t revertR! R ( R3 R
t fail_jsonR R( R ( R t force( ( sF /usr/lib/python2.7/site-packages/ansible/modules/source_control/bzr.pyt resetm s c C` s | j j d k rE | j d d | j g d | j \ } } } n$ | j d g d | j \ } } } | d k r | j j d d n | | | f S( s" updates branch from remote sourcesR t pulls -rR i R4 s Failed to pull( R
R' R R R
R6 ( R R R R ( ( sF /usr/lib/python2.7/site-packages/ansible/modules/source_control/bzr.pyt fetchw s 0$c C` sO | j j d k r* d d | j g } n d g } | j | d t d | j S( s2 once pulled, switch to a particular revno or revidR R5 s -rR! R ( R
R' R R( R ( R R ( ( sF /usr/lib/python2.7/site-packages/ansible/modules/source_control/bzr.pyt switch_version s N( t __name__t
__module__R t NoneR R R* R3 R8 R: R; ( ( ( sF /usr/lib/python2.7/site-packages/ansible/modules/source_control/bzr.pyR C s
c C` s. t d t d t d d d t d t d d d t d d g d
t d d d d d
t d d d d d t d d } | j d } | j d } | j d
} | j d
} | j d pΞ | j d t } t j j | d d d } d \ } } } t | | | | | }
d } t
} t j j | sI|
j \ } } } n |
j
} |
j } |
j | \ } } } | d k r| j d | n |
j \ } } } | d k rΜ| j d | n |
j \ } } } |
j }
t
} | |
k s| rt } n | j d | d | d |
d S( Nt
argument_specR t typeR# t requiredt namet strt aliasesR R
t defaultR R7 t boolt not
executablet bzrs .bzrR s branch.confi R4 t changedt beforet after( i NN( R t dictR( t paramst get_bin_pathR" R# t joinR> R t Falset existsR* R3 R R8 R6 R: R; t exit_json( R
R R R
R7 R t bzrconfigR R R RI RK t
local_modsRL RJ ( ( sF /usr/lib/python2.7/site-packages/ansible/modules/source_control/bzr.pyt main sB
t __main__( t
__future__R R R R@ t
__metaclass__t ANSIBLE_METADATAt
DOCUMENTATIONt EXAMPLESR" R+ t ansible.module_utils.basicR t objectR RV R<