knife-sharp 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -192,7 +192,7 @@ module KnifeSharp
192
192
  backup_data["cookbook_versions"] = Hash.new
193
193
  @cookbooks.each do |cb_name|
194
194
  cb = @loader[cb_name]
195
- if @cfg["rollback"]["enabled"] == true
195
+ if @cfg["rollback"] && @cfg["rollback"]["enabled"] == true
196
196
  backup_data["cookbook_versions"][cb_name] = env.cookbook_versions[cb_name]
197
197
  end
198
198
  # Force "= a.b.c" in cookbook version, as chef11 will not accept "a.b.c"
@@ -211,7 +211,7 @@ module KnifeSharp
211
211
  end
212
212
  end
213
213
 
214
- if @cfg["rollback"]["enabled"] == true
214
+ if @cfg["rollback"] && @cfg["rollback"]["enabled"] == true
215
215
  identifier = Time.now.to_i
216
216
  Dir.mkdir(@cfg["rollback"]["destination"]) unless File.exists?(@cfg["rollback"]["destination"])
217
217
  fp = open(File.join(@cfg["rollback"]["destination"], "#{identifier}.json"), "w")
data/lib/knife-sharp.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module KnifeSharp
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-sharp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-06-06 00:00:00.000000000 Z
13
+ date: 2013-06-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: chef