lib/fog/compute/storm_on_demand.rb in fog-0.8.2 vs lib/fog/compute/storm_on_demand.rb in fog-0.9.0
- old
+ new
@@ -1,14 +1,13 @@
module Fog
- module StormOnDemand
- class Compute < Fog::Service
-
+ module Compute
+ class StormOnDemand < Fog::Service
+
API_URL = 'https://api.stormondemand.com'
-
+
requires :storm_on_demand_username, :storm_on_demand_password
recognizes :storm_on_demand_auth_url
- recognizes :provider # remove post deprecation
model_path 'fog/compute/models/storm_on_demand'
model :config
collection :configs
model :image
@@ -120,10 +119,10 @@
end
unless response.body.empty?
response.body = JSON.parse(response.body)
end
if response.body.keys.include?('full_error')
- raise(Fog::StormOnDemand::Compute::Error, response.body.inspect)
+ raise(Fog::Compute::StormOnDemand::Error, response.body.inspect)
end
response
end
end