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 / remove.py
Size: Mime:
from . import base
from ... import commands


class Remove(base.BaseCommand):
    names = ['rm', 'remove']
    help = 'Remove container'
    arguments = (
        dict(
            dest='hosts',
            action='store',
            nargs='*',
            help='Hosts to connect to'
        ),
        (
            ('--force', '-f'),
            dict(action='store_true', default=False, help="Force remove containers")
        ),
        dict(
            dest='container_ids',
            action='store',
            help="Container ID (or IDs) to remove"
        )

    )

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