Sha256: 7b6eea7cd3782837a03288c4e9b7d1b00b16fe3121563a4f866cc54726fac725

Contents?: true

Size: 493 Bytes

Versions: 6

Compression:

Stored size: 493 Bytes

Contents

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

module Fog
  module Compute
    class Ecloud
      class OperatingSystems < Fog::Ecloud::Collection
        model Fog::Compute::Ecloud::OperatingSystem

        identity :data

        def all
          load(data)
        end

        def get(uri)
          if data = service.get_operating_system(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/operating_systems.rb
fog-ecloud-0.2.0 lib/fog/compute/ecloud/models/operating_systems.rb
fog-ecloud-0.1.3 lib/fog/compute/ecloud/models/operating_systems.rb
fog-ecloud-0.1.2 lib/fog/compute/ecloud/models/operating_systems.rb
fog-ecloud-0.1.1 lib/fog/compute/ecloud/models/operating_systems.rb
fog-ecloud-0.1.0 lib/fog/compute/ecloud/models/operating_systems.rb