lib/bootic_cli/store.rb in bootic_cli-0.1.8 vs lib/bootic_cli/store.rb in bootic_cli-0.1.9
- old
+ new
@@ -34,11 +34,11 @@
FileUtils.rm_rf base_dir
end
def needs_upgrade?
transaction do
- store['version'].to_i < VERSION && store[DEFAULT_NAMESPACE].nil?
+ store['version'].to_i < VERSION
end
end
def upgrade!
return unless needs_upgrade?
@@ -53,10 +53,10 @@
current_values.each do |k, v|
self[k] = v
end
- self['version'] = VERSION
+ store['version'] = VERSION
end
end
private