knife-easybake 0.0.5 → 0.0.6

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.
@@ -24,13 +24,16 @@ class Chef
24
24
  organization = name_args[0]
25
25
 
26
26
  output "Creating organization #{organization} ..."
27
- webui_session.create_org(organization)
28
- if Chef::Config[:validator_key_file]
29
- output "Creating validator file #{validator_key_file}"
30
- user_key = webui_session.regenerate_validator_key
31
- File.open(Chef::Config[:validator_key_file], 'w') do |file|
32
- file.write(user_key)
27
+ begin
28
+ webui_session.create_org(organization)
29
+ if Chef::Config[:validator_key_file]
30
+ output "Creating validator file #{validator_key_file}"
31
+ user_key = webui_session.regenerate_validator_key
32
+ File.open(Chef::Config[:validator_key_file], 'w') do |file|
33
+ file.write(user_key)
34
+ end
33
35
  end
36
+ rescue
34
37
  end
35
38
  end
36
39
  end
@@ -1,3 +1,3 @@
1
1
  module KnifeEasybake
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-easybake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: