Sha256: 5c5f44605223979855c085feb8c938f584c67c6451b2b6645e869185b449d50a

Contents?: true

Size: 564 Bytes

Versions: 6

Compression:

Stored size: 564 Bytes

Contents

require File.expand_path("../hardware_configuration", __FILE__)

module Fog
  module Compute
    class Ecloud
      class HardwareConfigurations < Fog::Ecloud::Collection
        identity :href

        model Fog::Compute::Ecloud::HardwareConfiguration

        def all
          data = service.get_server(href).body
          load(data)
        end

        def get(uri)
          if data = service.get_hardware_configuration(uri)
            new(data.body)
          end
        rescue Fog::Errors::NotFound
          nil
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-ecloud-0.1.1/lib/fog/compute/ecloud/models/hardware_configurations.rb
fog-ecloud-0.2.0 lib/fog/compute/ecloud/models/hardware_configurations.rb
fog-ecloud-0.1.3 lib/fog/compute/ecloud/models/hardware_configurations.rb
fog-ecloud-0.1.2 lib/fog/compute/ecloud/models/hardware_configurations.rb
fog-ecloud-0.1.1 lib/fog/compute/ecloud/models/hardware_configurations.rb
fog-ecloud-0.1.0 lib/fog/compute/ecloud/models/hardware_configurations.rb