'plum up' is now the special magic

'start' and 'stop' are now analogous to their Docker namesakes.
This commit is contained in:
Aanand Prasad 2013-12-20 16:22:54 +00:00
commit a4710fa9e1
6 changed files with 119 additions and 69 deletions

View file

@ -83,13 +83,18 @@ class Container(object):
out[k] = v
return out
@property
def is_running(self):
self.inspect_if_not_inspected()
return self.dictionary['State']['Running']
def start(self, **options):
log.info("Starting %s..." % self.name)
return self.client.start(self.id, **options)
def stop(self):
def stop(self, **options):
log.info("Stopping %s..." % self.name)
return self.client.stop(self.id)
return self.client.stop(self.id, **options)
def kill(self):
log.info("Killing %s..." % self.name)