Sha256: 4b4adfbfef55419a3b808636885a8898be45f032a068a278db950bf555c11f9d

Contents?: true

Size: 450 Bytes

Versions: 17

Compression:

Stored size: 450 Bytes

Contents

require 'fog/core/collection'
require 'fog/opennebula/models/compute/server'


module Fog
  module Compute
    class OpenNebula

      class Servers < Fog::Collection

        model Fog::Compute::OpenNebula::Server

        def all(filter={})
          load(service.list_vms(filter))
        end

        def get(id)
          data = service.list_vms({:id => id})
          new data.first unless data.empty?
        end

      end
    end
  end
end

Version data entries

17 entries across 17 versions & 3 rubygems

Version Path
fog-1.29.0 lib/fog/opennebula/models/compute/servers.rb
fog-1.28.0 lib/fog/opennebula/models/compute/servers.rb
fog-1.27.0 lib/fog/opennebula/models/compute/servers.rb
fog-1.26.0 lib/fog/opennebula/models/compute/servers.rb
fog-1.25.0 lib/fog/opennebula/models/compute/servers.rb
nsidc-fog-1.24.1 lib/fog/opennebula/models/compute/servers.rb
fog-1.24.0 lib/fog/opennebula/models/compute/servers.rb
ns-fog-1.22.11 lib/fog/opennebula/models/compute/servers.rb
ns-fog-1.22.10 lib/fog/opennebula/models/compute/servers.rb
ns-fog-1.22.9 lib/fog/opennebula/models/compute/servers.rb
ns-fog-1.22.8 lib/fog/opennebula/models/compute/servers.rb
ns-fog-1.22.7 lib/fog/opennebula/models/compute/servers.rb
ns-fog-1.22.6 lib/fog/opennebula/models/compute/servers.rb
fog-1.23.0 lib/fog/opennebula/models/compute/servers.rb
ns-fog-1.22.4 lib/fog/opennebula/models/compute/servers.rb
ns-fog-1.22.3 lib/fog/opennebula/models/compute/servers.rb
ns-fog-1.22.2 lib/fog/opennebula/models/compute/servers.rb