knife-easybake 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -24,13 +24,16 @@ class Chef
|
|
24
24
|
organization = name_args[0]
|
25
25
|
|
26
26
|
output "Creating organization #{organization} ..."
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
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
|