Sha256: 325785bc7cf130995aa2c4b2e1f378dec923b8687464f3773bbc662eca642de9
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
class TestLab class Network module Lifecycle # Network Setup def setup @ui.logger.debug { "Network Setup: #{self.id} " } please_wait(:ui => @ui, :message => format_object_action(self, 'Setup', :green)) do self.provisioners.each do |provisioner| @ui.logger.info { ">>>>> NETWORK PROVISIONER SETUP: #{provisioner} <<<<<" } p = provisioner.new(self.config, @ui) p.respond_to?(:on_node_teardown) and p.on_node_teardown(self) end end true end # Network Teardown def teardown @ui.logger.debug { "Network Teardown: #{self.id} " } please_wait(:ui => @ui, :message => format_object_action(self, 'Teardown', :red)) do self.provisioners.each do |provisioner| @ui.logger.info { ">>>>> NETWORK PROVISIONER TEARDOWN: #{provisioner} <<<<<" } p = provisioner.new(self.config, @ui) p.respond_to?(:on_node_teardown) and p.on_node_teardown(self) end end true end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
testlab-0.6.6 | lib/testlab/network/lifecycle.rb |