.--. . .--. ---.. / .. ... / .- -. -. --- -.-- .. -. --.

pull/22960/head
Brian Coca 8 years ago committed by Brian Coca
parent 18a7a1ec31
commit 2a2e02aea4

@ -6,6 +6,7 @@ import sys
from jinja2 import Environment, FileSystemLoader from jinja2 import Environment, FileSystemLoader
def get_options(optlist): def get_options(optlist):
''' get actual options ''' ''' get actual options '''
@ -21,6 +22,7 @@ def get_options(optlist):
return opts return opts
def opt_doc_list(cli): def opt_doc_list(cli):
''' iterate over options lists ''' ''' iterate over options lists '''
@ -32,6 +34,7 @@ def opt_doc_list(cli):
return results return results
def opts_docs(cli, name): def opts_docs(cli, name):
''' generate doc structure from options ''' ''' generate doc structure from options '''

@ -61,10 +61,8 @@ class ConsoleCLI(CLI, cmd.Cmd):
''' a REPL that allows for running ad-hoc tasks against a chosen inventory (based on dominis' ansible-shell).''' ''' a REPL that allows for running ad-hoc tasks against a chosen inventory (based on dominis' ansible-shell).'''
modules = [] modules = []
ARGUMENTS = { ARGUMENTS = { 'host-pattern': 'A name of a group in the inventory, a shell-like glob '
'host-pattern': 'A name of a group in the inventory, a shell-like glob ' 'selecting hosts in inventory or any combination of the two separated by commas.', }
'selecting hosts in inventory or any combination of the two separated by commas.',
}
def __init__(self, args): def __init__(self, args):

@ -62,12 +62,10 @@ class PullCLI(CLI):
2: 'File is not readable' 2: 'File is not readable'
} }
SUPPORTED_REPO_MODULES = ['git'] SUPPORTED_REPO_MODULES = ['git']
ARGUMENTS = { ARGUMENTS = { 'playbook.yml': 'The name of one the YAML format files to run as an Ansible playbook.'
'playbook.yml': 'The name of one the YAML format files to run as an Ansible playbook.'
'This can be a relative path within the checkout. By default, Ansible will' 'This can be a relative path within the checkout. By default, Ansible will'
"look for a playbook based on the host's fully-qualified domain name," "look for a playbook based on the host's fully-qualified domain name,"
'on the host hostname and finally a playbook named *local.yml*.', 'on the host hostname and finally a playbook named *local.yml*.', }
}
def parse(self): def parse(self):
''' create an options parser for bin/ansible ''' ''' create an options parser for bin/ansible '''

Loading…
Cancel
Save