Sha256: 02a2cdc9f3d066ae32775f2ae55ef20534fa7f4ce9ff7b55ae067c221a848496

Contents?: true

Size: 538 Bytes

Versions: 3

Compression:

Stored size: 538 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,
          :ip => @provider.ip,
          :port => @provider.port,
          :provider => @provider.class,
          :con => self.containers.count,
          :net => self.networks.count
        }
      end

    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
testlab-0.4.0 lib/testlab/node/status.rb
testlab-0.3.1 lib/testlab/node/status.rb
testlab-0.3.0 lib/testlab/node/status.rb