Sha256: 1de7d63d6c1a9177d9ba8194bcf0604fee1d29f7545f2d41f38066bb6defac3c

Contents?: true

Size: 892 Bytes

Versions: 13

Compression:

Stored size: 892 Bytes

Contents

class TestLab
  class Network

    module Provision

      # Network Provision
      def provision
        @ui.logger.debug { "Network Provision: #{self.id} " }

        (self.node.state != :running) and return false
        (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

      # Network Deprovision
      def deprovision
        @ui.logger.debug { "Network Deprovision: #{self.id} " }

        (self.node.state != :running) and return false
        (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/network/provision.rb
testlab-1.4.3 lib/testlab/network/provision.rb
testlab-1.4.2 lib/testlab/network/provision.rb
testlab-1.4.1 lib/testlab/network/provision.rb
testlab-1.4.0 lib/testlab/network/provision.rb
testlab-1.3.2 lib/testlab/network/provision.rb
testlab-1.3.1 lib/testlab/network/provision.rb
testlab-1.3.0 lib/testlab/network/provision.rb
testlab-1.2.3 lib/testlab/network/provision.rb
testlab-1.2.2 lib/testlab/network/provision.rb
testlab-1.2.1 lib/testlab/network/provision.rb
testlab-1.2.0 lib/testlab/network/provision.rb
testlab-1.1.0 lib/testlab/network/provision.rb