Module: TestLab::Node::Status

Included in:
TestLab::Node
Defined in:
lib/testlab/node/status.rb

Instance Method Summary collapse

Instance Method Details

#statusHash

Node Status

Returns:

  • (Hash)

    A hash detailing the status of the node.



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/testlab/node/status.rb', line 9

def status
  {
    :ok => self.doctor.inspect,
    :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