Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
hubboss / boss / app / commands / execute.py
Size: Mime:
from . import base
from ... import commands


class Exec(base.BaseCommand):
    names = ['exec', 'execute']
    help = 'Exec into a container'

    arguments = (
        dict(dest='host', action='store', help='Host to connect to'),
        dict(dest='container_id', action='store', help='Container ID to exec'),
        dict(dest='command', action='store', help='Command to execute on container')
    )

    def run(self):
        return commands.container_exec(app=self.app, **self.kwargs)