Sha256: 6676f5418ec725e97925fe93540da3559e7e22332471ded789dc5b45b0ed3bf5

Contents?: true

Size: 764 Bytes

Versions: 54

Compression:

Stored size: 764 Bytes

Contents

class TestLab
  class Network

    module Provision

      # Network Provision
      def provision
        @ui.logger.debug { "Network 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

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

        self.node.alive? or 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

54 entries across 54 versions & 1 rubygems

Version Path
testlab-1.22.4 lib/testlab/network/provision.rb
testlab-1.22.3 lib/testlab/network/provision.rb
testlab-1.22.2 lib/testlab/network/provision.rb
testlab-1.22.1 lib/testlab/network/provision.rb
testlab-1.22.0 lib/testlab/network/provision.rb
testlab-1.21.1 lib/testlab/network/provision.rb
testlab-1.21.0 lib/testlab/network/provision.rb
testlab-1.20.6 lib/testlab/network/provision.rb
testlab-1.20.5 lib/testlab/network/provision.rb
testlab-1.20.4 lib/testlab/network/provision.rb
testlab-1.20.3 lib/testlab/network/provision.rb
testlab-1.20.2 lib/testlab/network/provision.rb
testlab-1.20.1 lib/testlab/network/provision.rb
testlab-1.20.0 lib/testlab/network/provision.rb
testlab-1.19.0 lib/testlab/network/provision.rb
testlab-1.18.1 lib/testlab/network/provision.rb
testlab-1.18.0 lib/testlab/network/provision.rb
testlab-1.17.0 lib/testlab/network/provision.rb
testlab-1.16.1 lib/testlab/network/provision.rb
testlab-1.16.0 lib/testlab/network/provision.rb