lib/fog/compute/rackspace.rb in fog-0.8.1 vs lib/fog/compute/rackspace.rb in fog-0.8.2

- old
+ new

@@ -51,24 +51,30 @@ :servers => {} } end end + def self.reset + @data = nil + end + def initialize(options={}) unless options.delete(:provider) location = caller.first warning = "[yellow][WARN] Fog::Rackspace::Compute.new is deprecated, use Fog::Compute.new(:provider => 'Rackspace') instead[/]" warning << " [light_black](" << location << ")[/] " Formatador.display_line(warning) end @rackspace_username = options[:rackspace_username] - @data = self.class.data[@rackspace_username] end + def data + self.class.data[@rackspace_username] + end + def reset_data self.class.data.delete(@rackspace_username) - @data = self.class.data[@rackspace_username] end end class Real