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.6.1 lib/testlab/node/status.rb
testlab-1.6.0 lib/testlab/node/status.rb
testlab-1.5.1 lib/testlab/node/status.rb
testlab-1.5.0 lib/testlab/node/status.rb
testlab-1.4.4 lib/testlab/node/status.rb
testlab-1.4.3 lib/testlab/node/status.rb
testlab-1.4.2 lib/testlab/node/status.rb
testlab-1.4.1 lib/testlab/node/status.rb
testlab-1.4.0 lib/testlab/node/status.rb
testlab-1.3.2 lib/testlab/node/status.rb
testlab-1.3.1 lib/testlab/node/status.rb
testlab-1.3.0 lib/testlab/node/status.rb
testlab-1.2.3 lib/testlab/node/status.rb
testlab-1.2.2 lib/testlab/node/status.rb
testlab-1.2.1 lib/testlab/node/status.rb
testlab-1.2.0 lib/testlab/node/status.rb
testlab-1.1.0 lib/testlab/node/status.rb
testlab-1.0.1 lib/testlab/node/status.rb
testlab-1.0.0 lib/testlab/node/status.rb
testlab-0.9.1 lib/testlab/node/status.rb