diff --git a/lib/fog/compute/bluebox.rb b/lib/fog/compute/bluebox.rb index c3b60ba3f..f55eca925 100644 --- a/lib/fog/compute/bluebox.rb +++ b/lib/fog/compute/bluebox.rb @@ -33,6 +33,10 @@ module Fog end end + def self.reset + @data = nil + end + def initialize(options={}) unless options.delete(:provider) location = caller.first diff --git a/lib/fog/compute/go_grid.rb b/lib/fog/compute/go_grid.rb index 6a1978cc1..bad4c2377 100644 --- a/lib/fog/compute/go_grid.rb +++ b/lib/fog/compute/go_grid.rb @@ -36,6 +36,10 @@ module Fog end end + def self.reset + @data = nil + end + def initialize(options={}) unless options.delete(:provider) location = caller.first diff --git a/lib/fog/compute/linode.rb b/lib/fog/compute/linode.rb index 63a10f633..7c9b91751 100644 --- a/lib/fog/compute/linode.rb +++ b/lib/fog/compute/linode.rb @@ -31,6 +31,10 @@ module Fog end end + def self.reset + @data = nil + end + def initialize(options={}) unless options.delete(:provider) location = caller.first diff --git a/lib/fog/compute/new_servers.rb b/lib/fog/compute/new_servers.rb index d3f0d4057..d3ae028f8 100644 --- a/lib/fog/compute/new_servers.rb +++ b/lib/fog/compute/new_servers.rb @@ -25,6 +25,10 @@ module Fog end end + def self.reset + @data = nil + end + def initialize(options={}) unless options.delete(:provider) location = caller.first diff --git a/lib/fog/compute/rackspace.rb b/lib/fog/compute/rackspace.rb index 72d6cea60..da871cbec 100644 --- a/lib/fog/compute/rackspace.rb +++ b/lib/fog/compute/rackspace.rb @@ -53,6 +53,10 @@ module Fog end end + def self.reset + @data = nil + end + def initialize(options={}) unless options.delete(:provider) location = caller.first diff --git a/lib/fog/compute/slicehost.rb b/lib/fog/compute/slicehost.rb index a68f2b894..2f5ca1abe 100644 --- a/lib/fog/compute/slicehost.rb +++ b/lib/fog/compute/slicehost.rb @@ -34,6 +34,10 @@ module Fog end end + def self.reset + @data = nil + end + def initialize(options={}) unless options.delete(:provider) location = caller.first diff --git a/lib/fog/compute/storm_on_demand.rb b/lib/fog/compute/storm_on_demand.rb index d7391f495..ff2919270 100644 --- a/lib/fog/compute/storm_on_demand.rb +++ b/lib/fog/compute/storm_on_demand.rb @@ -56,6 +56,10 @@ module Fog end end + def self.reset + @data = nil + end + def self.reset_data(keys=data.keys) for key in [*keys] data.delete(key) diff --git a/lib/fog/compute/voxel.rb b/lib/fog/compute/voxel.rb index 596981d3e..cebe8b1bc 100644 --- a/lib/fog/compute/voxel.rb +++ b/lib/fog/compute/voxel.rb @@ -48,6 +48,10 @@ module Fog end end + def self.reset + @data = nil + end + def initialize(options={}) @voxel_api_key = options[:voxel_api_key] @data = self.class.data[@voxel_api_key]