Sha256: 17bf7aba4ccb44d89dda312fa4cacf0f5a147cbdd4f8f2c81c8e937c5ca6bc31

Contents?: true

Size: 641 Bytes

Versions: 23

Compression:

Stored size: 641 Bytes

Contents

class TestLab
  class Node

    module Status

      # Node Status
      #
      # @return [Hash] A hash detailing the status of the node.
      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

    end

  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

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