Sha256: ea592a6c2c013ddb7b1fc98d95e924a34b8472452d888c3a82a09e4f43709ca0

Contents?: true

Size: 603 Bytes

Versions: 66

Compression:

Stored size: 603 Bytes

Contents

class TestLab
  class Node

    module Status

      # Node Status
      #
      # @return [Hash] A hash detailing the status of the node.
      def status
        {
          :id => self.id,
          :instance_id => @provider.instance_id,
          :state => @provider.state,
          :user => @provider.user,
          :identity => @provider.identity,
          :ip => @provider.ip,
          :port => @provider.port,
          :provider => @provider.class,
          :provisioners => self.provisioners.map(&:to_s).collect{ |p| p.split('::').last }.join(',')
        }
      end

    end

  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
testlab-1.11.2 lib/testlab/node/status.rb
testlab-1.11.1 lib/testlab/node/status.rb
testlab-1.11.0 lib/testlab/node/status.rb
testlab-1.10.0 lib/testlab/node/status.rb
testlab-1.9.2 lib/testlab/node/status.rb
testlab-1.9.1 lib/testlab/node/status.rb
testlab-1.9.0 lib/testlab/node/status.rb
testlab-1.8.5 lib/testlab/node/status.rb
testlab-1.8.4 lib/testlab/node/status.rb
testlab-1.8.3 lib/testlab/node/status.rb
testlab-1.8.2 lib/testlab/node/status.rb
testlab-1.8.1 lib/testlab/node/status.rb
testlab-1.8.0 lib/testlab/node/status.rb
testlab-1.7.1 lib/testlab/node/status.rb
testlab-1.7.0 lib/testlab/node/status.rb
testlab-1.6.6 lib/testlab/node/status.rb
testlab-1.6.5 lib/testlab/node/status.rb
testlab-1.6.4 lib/testlab/node/status.rb
testlab-1.6.3 lib/testlab/node/status.rb
testlab-1.6.2 lib/testlab/node/status.rb