2011-04-27 21:49:56 -04:00
|
|
|
require 'fog/core/collection'
|
2011-08-24 21:14:00 -04:00
|
|
|
require 'fog/storm_on_demand/models/compute/config'
|
2011-04-27 21:49:56 -04:00
|
|
|
|
|
|
|
module Fog
|
2011-06-16 19:28:54 -04:00
|
|
|
module Compute
|
|
|
|
class StormOnDemand
|
2011-04-27 21:49:56 -04:00
|
|
|
class Configs < Fog::Collection
|
2011-06-16 19:28:54 -04:00
|
|
|
model Fog::Compute::StormOnDemand::Config
|
2011-04-27 21:49:56 -04:00
|
|
|
|
2013-05-21 05:35:57 -04:00
|
|
|
def all(options={})
|
|
|
|
data = service.list_configs(options).body['items']
|
2011-04-27 21:49:56 -04:00
|
|
|
load(data)
|
|
|
|
end
|
|
|
|
|
2013-05-21 05:35:57 -04:00
|
|
|
def get(config_id)
|
|
|
|
data = service.get_config_details(:id => config_id).body
|
|
|
|
new(data)
|
|
|
|
end
|
2011-04-27 21:49:56 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|