Sha256: f78fa9bbc017fb8a0f9e03e08959cd4da1b9109051941d31c1e0bb9700b3b311

Contents?: true

Size: 776 Bytes

Versions: 13

Compression:

Stored size: 776 Bytes

Contents

class TestLab
  class Node

    module Provision

      # Provision the node.
      def provision
        @ui.logger.debug { "Node Provision: #{self.id} " }

        (self.state != :running) and return false

        please_wait(:ui => @ui, :message => format_object_action(self, 'Provision', :green)) do
          do_provisioner_callbacks(self, :provision, @ui)
        end

        true
      end

      # Deprovision the node.
      def deprovision
        @ui.logger.debug { "Node Deprovision: #{self.id} " }

        (self.state != :running) and return false

        please_wait(:ui => @ui, :message => format_object_action(self, 'Deprovision', :red)) do
          do_provisioner_callbacks(self, :deprovision, @ui)
        end

        true
      end

    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
testlab-1.4.4 lib/testlab/node/provision.rb
testlab-1.4.3 lib/testlab/node/provision.rb
testlab-1.4.2 lib/testlab/node/provision.rb
testlab-1.4.1 lib/testlab/node/provision.rb
testlab-1.4.0 lib/testlab/node/provision.rb
testlab-1.3.2 lib/testlab/node/provision.rb
testlab-1.3.1 lib/testlab/node/provision.rb
testlab-1.3.0 lib/testlab/node/provision.rb
testlab-1.2.3 lib/testlab/node/provision.rb
testlab-1.2.2 lib/testlab/node/provision.rb
testlab-1.2.1 lib/testlab/node/provision.rb
testlab-1.2.0 lib/testlab/node/provision.rb
testlab-1.1.0 lib/testlab/node/provision.rb