Module: TestLab::Container::Provision
- Included in:
- TestLab::Container
- Defined in:
- lib/testlab/container/provision.rb
Instance Method Summary collapse
-
#deprovision ⇒ Boolean
Deprovision the container.
-
#provision ⇒ Boolean
Provision the container.
Instance Method Details
#deprovision ⇒ Boolean
Deprovision the container
Attempts to deprovision the container. Calls the containers defined provisioners deprovision methods.
30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/testlab/container/provision.rb', line 30 def deprovision @ui.logger.debug { "Container Deprovision: #{self.id} " } self.node.alive? or return false persistent_operation_check(:deprovision) please_wait(:ui => @ui, :message => format_object_action(self, :deprovision, :red)) do do_provisioner_callbacks(self, :deprovision, @ui) end true end |
#provision ⇒ Boolean
Provision the container
Attempts to provision the container. Calls the containers defined provisioners provision methods.
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/testlab/container/provision.rb', line 12 def provision @ui.logger.debug { "Container Provision: #{self.id} " } self.node.alive? or return false please_wait(:ui => @ui, :message => format_object_action(self, :provision, :green)) do do_provisioner_callbacks(self, :provision, @ui) end true end |