lib/testlab/container/actions.rb in testlab-1.13.0 vs lib/testlab/container/actions.rb in testlab-1.14.0
- old
+ new
@@ -11,11 +11,10 @@
# @return [Boolean] True if successful.
def create
@ui.logger.debug { "Container Create: #{self.id}" }
self.node.alive? or return false
- self.node.ok?
persistent_operation_check(:create)
please_wait(:ui => @ui, :message => format_object_action(self, 'Create', :green)) do
configure
@@ -35,11 +34,10 @@
# @return [Boolean] True if successful.
def destroy
@ui.logger.debug { "Container Destroy: #{self.id}" }
self.node.alive? or return false
- self.node.ok?
please_wait(:ui => @ui, :message => format_object_action(self, 'Destroy', :red)) do
self.lxc.destroy(%(-f))
self.lxc_clone.destroy(%(-f))
@@ -56,11 +54,10 @@
# @return [Boolean] True if successful.
def up
@ui.logger.debug { "Container Up: #{self.id}" }
self.node.alive? or return false
- self.node.ok?
please_wait(:ui => @ui, :message => format_object_action(self, 'Up', :green)) do
configure
# Remove any existing ARP entries for our container from the node.
@@ -102,10 +99,9 @@
# @return [Boolean] True if successful.
def down
@ui.logger.debug { "Container Down: #{self.id}" }
self.node.alive? or return false
- self.node.ok?
please_wait(:ui => @ui, :message => format_object_action(self, 'Down', :red)) do
self.lxc.stop