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