Sha256: 60a5749e899179f803ecc40150f64cc29799650192a39e816f8bc58e9f1e6941

Contents?: true

Size: 581 Bytes

Versions: 27

Compression:

Stored size: 581 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,
          :con => self.containers.count,
          :net => self.networks.count
        }
      end

    end

  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
testlab-0.4.7 lib/testlab/node/status.rb
testlab-0.4.6 lib/testlab/node/status.rb
testlab-0.4.5 lib/testlab/node/status.rb
testlab-0.4.4 lib/testlab/node/status.rb
testlab-0.4.3 lib/testlab/node/status.rb
testlab-0.4.2 lib/testlab/node/status.rb
testlab-0.4.1 lib/testlab/node/status.rb