Sha256: b2b7f8f611e51a81826fdbe1284db96fb628734f57040024cbe1479276ba3e56

Contents?: true

Size: 491 Bytes

Versions: 13

Compression:

Stored size: 491 Bytes

Contents

require 'fog/compute/models/server'
require 'fog/openstack/models/compute/metadata'

module Fog
  module Compute
    class OpenStack

      class Host < Fog::Model

        attribute :host_name
        attribute :service
        attribute :details

        def initialize(attributes)
          @connection = attributes[:connection]
          super
        end

        def details
          connection.get_host_details(self.host_name).body['host']
        end

      end

    end
  end

end

Version data entries

13 entries across 13 versions & 7 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/openstack/models/compute/host.rb
fog-nirvanix-1.8.1 lib/fog/openstack/models/compute/host.rb
fog-parser-fix-1.6.1 lib/fog/openstack/models/compute/host.rb
fog-test-again-1.6.0 lib/fog/openstack/models/compute/host.rb
fog-parser-fix-1.6.0 lib/fog/openstack/models/compute/host.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/openstack/models/compute/host.rb
fog-sgonyea-1.8.1 lib/fog/openstack/models/compute/host.rb
fog-1.8.0 lib/fog/openstack/models/compute/host.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/openstack/models/compute/host.rb
fog-1.7.0 lib/fog/openstack/models/compute/host.rb
fog-1.6.0 lib/fog/openstack/models/compute/host.rb
fog-1.5.0 lib/fog/openstack/models/compute/host.rb
fog-1.4.0 lib/fog/openstack/models/compute/host.rb