Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(90)  |  Call(59)  |  Derive(31)  |  Import(0)

src/b/o/bombardier_cli-1.10-783/lib/Machine.py   bombardier_cli(Download)
class AssignCommand(PinshCmd.PinshCmd):
    "Handles all 'machine <machine> assign x' operations"
    def __init__(self):
        "Set up the command"
        PinshCmd.PinshCmd.__init__(self, "assign")
class EditCommand(PinshCmd.PinshCmd):
    "Handles all 'machine <machine> edit x' operations"
    def __init__(self):
        "Set up the command"
        PinshCmd.PinshCmd.__init__(self, "edit")
        self.help_text = "commands that edit configuration data"
        self.cmd_owner = 1
        self.auth = ENABLE
 
        bom = PinshCmd.PinshCmd("bom")
        bom = PinshCmd.PinshCmd("bom")
        bom.help_text = "Edit a Bill of Materials for this machine"
        include = PinshCmd.PinshCmd("include")
        include.help_text = "Edit an include file for this machine"
        config = PinshCmd.PinshCmd("config")

src/b/o/bombardier_cli-1.10-783/lib/Dispatcher.py   bombardier_cli(Download)
class JobCommand(PinshCmd.PinshCmd):
    '''The idea is this: bomsh# dispatcher job view foo
       would produce this: [OK, ['Job stopped']]
       But it can't be tested easily from this test harness.
    '''
        self.cmd_owner = 1
 
        view = PinshCmd.PinshCmd("view", "view\tview an active -running job")
        kill = PinshCmd.PinshCmd("kill", "kill\tkill a job that is active")
        job_name_field = JobNameField()
class Dispatcher(PinshCmd.PinshCmd):
    '''bomsh# dispatcher status
       [OK, ['uptime: ==UNKNOWN==', 'active_jobs: []']]
       bomsh# dispatcher stop
       [OK, ['Dispatcher stopped']]
        self.cmd_owner = 1
 
        start = PinshCmd.PinshCmd("start", "start the dispatcher")
        stop = PinshCmd.PinshCmd("stop", "stop the dispatcher")
        status = PinshCmd.PinshCmd("status", "status of the dispatcher")

src/b/o/bombardier_cli-1.10-783/lib/Terminal.py   bombardier_cli(Download)
class Terminal(PinshCmd.PinshCmd):
    'If you want to set your terminal, use this'
    def __init__(self):
        PinshCmd.PinshCmd.__init__(self, "terminal")
        self.help_text = "configure the terminal"
 
        log_level = PinshCmd.PinshCmd("log-level")
        log_level.help_text = "set degree of logging to display to terminal"
        length = PinshCmd.PinshCmd("length")
        length = PinshCmd.PinshCmd("length")
        length.help_text = "number of lines the terminal can display"
        width  = PinshCmd.PinshCmd("width")
        width.help_text = "number of columns the terminal can disply"
        color  = PinshCmd.PinshCmd("color", "set terminal color")

src/b/o/bombardier_cli-1.10-783/lib/User.py   bombardier_cli(Download)
class User(PinshCmd.PinshCmd):
    "Command-line object for modifying administrative users"
 
    def __init__(self):
        'Top-level object'
        self.children = [self.user_field]
 
        delete = PinshCmd.PinshCmd("delete", "delete\tdelete this user (can't be yourself)")
        edit = PinshCmd.PinshCmd("edit", "edit\tedit the configuration for this user")
        set_password = PinshCmd.PinshCmd("set-password", "set-password\tset the password for this user")

src/b/o/bombardier_cli-1.10-783/lib/Package.py   bombardier_cli(Download)
class Package(PinshCmd.PinshCmd):
    '''
       bomsh# package TestPackage build
       [OK, ['install OK: TestPackageType4-7', 'verify OK: TestPackageType4-7', 'Finished installing']]
    '''
        self.children = [self.package_field]
 
        build = PinshCmd.PinshCmd("build", "build a package from source control")
        edit = PinshCmd.PinshCmd("edit", "edit the configuration for this package")
        show = PinshCmd.PinshCmd("show", "display the configuration for this package")

src/b/o/bombardier_cli-1.10-783/lib/Show.py   bombardier_cli(Download)
class ShowType(PinshCmd.PinshCmd):
    '''A thing that can be shown.'''
    def __init__(self, name, help_text):
        PinshCmd.PinshCmd.__init__(self, name, help_text)
        self.config_field = None
class Version(PinshCmd.PinshCmd):
    'Displays the version information of all of the server components'
    def __init__(self):
        PinshCmd.PinshCmd.__init__(self, "version")
        self.help_text = "version\tshow bombardier server version information"
class History(PinshCmd.PinshCmd):
    'Displays command-line history (NOT from the server)'
    def __init__(self):
        PinshCmd.PinshCmd.__init__(self, "history")
        self.help_text = "history\tdisplay the history of commands"
class Show(PinshCmd.PinshCmd):
#       bomsh# show machine localhost
#       [OK, ['default_user: root', 'ip_address: 127.0.0.1', 'packages:', '- TestPackageType4', 'platform: linux', 'test:', '  directory: /tmp/testthing', '  value: hello_kitty', '']]
#       bomsh# show summary localhost
#       [OK, ['broken: []', 'installed:', '- TestPackageType4-7', 'not_installed: []', 'status: 0', '']]

src/b/o/bombardier_cli-1.10-783/lib/Edit.py   bombardier_cli(Download)
class EditType(PinshCmd.PinshCmd):
    '''A thing that can be edited.'''
    def __init__(self, name, help_text):
        PinshCmd.PinshCmd.__init__(self, name, help_text)
        self.config_field = None
class Edit(PinshCmd.PinshCmd):
    '''Edit a file'''
    def __init__(self):
        PinshCmd.PinshCmd.__init__(self, "edit")
        self.help_text = "edit\tmodify components of the system"

src/b/o/bombardier_cli-1.10-783/lib/Create.py   bombardier_cli(Download)
class CreateType(PinshCmd.PinshCmd):
    '''A thing that can be created.'''
    def __init__(self, name, help_text):
        PinshCmd.PinshCmd.__init__(self, name, help_text)
        self.config_field = None
class Create(PinshCmd.PinshCmd):
    '''Create a file'''
    def __init__(self):
        PinshCmd.PinshCmd.__init__(self, "create")
        self.help_text = "create\tcreate a new system component"

src/b/o/bombardier_cli-1.10-783/lib/Ssh.py   bombardier_cli(Download)
class Ssh(PinshCmd.PinshCmd):
    "Provides the ability to SSH to a machine directly"
 
    def __init__(self):
        PinshCmd.PinshCmd.__init__(self, "ssh")

src/b/o/bombardier_cli-1.10-783/lib/Slash.py   bombardier_cli(Download)
class Slash(PinshCmd.PinshCmd):
    '''Root-level PinshCmd object, has no name.'''
    def __init__(self, children):
        PinshCmd.PinshCmd.__init__(self, "")
        self.children = children

  1 | 2 | 3  Next