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

- old
+ new

@@ -54,18 +54,29 @@ :servers => {} } end end + def self.reset + @data = nil + end + def self.reset_data(keys=data.keys) for key in [*keys] data.delete(key) end end def initialize(options={}) @storm_on_demand_username = options[:storm_on_demand_username] - @data = self.class.data[@storm_on_demand_username] + end + + def data + self.class.data[@storm_on_demand_username] + end + + def reset_data + self.class.data.delete(@storm_on_demand_username) end end class Real