lib/testlab/node/actions.rb in testlab-0.9.1 vs lib/testlab/node/actions.rb in testlab-1.0.0

- old
+ new

@@ -9,10 +9,12 @@ (self.state != :not_created) and return false please_wait(:ui => @ui, :message => format_object_action(self, 'Create', :green)) do @provider.create + + do_provisioner_callbacks(self, :create, @ui) end true end @@ -22,10 +24,12 @@ (self.state == :not_created) and return false please_wait(:ui => @ui, :message => format_object_action(self, 'Destroy', :red)) do @provider.destroy + + do_provisioner_callbacks(self, :destroy, @ui) end true end @@ -35,10 +39,12 @@ (self.state == :running) and return false please_wait(:ui => @ui, :message => format_object_action(self, 'Up', :green)) do @provider.up + + do_provisioner_callbacks(self, :up, @ui) end true end @@ -48,9 +54,11 @@ (self.state != :running) and return false please_wait(:ui => @ui, :message => format_object_action(self, 'Down', :red)) do @provider.down + + do_provisioner_callbacks(self, :down, @ui) end true end