knife-easybake 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -97,9 +97,9 @@ EOM
97
97
 
98
98
  # Write out client client.rb
99
99
  client_rb_file = "#{File.dirname(Chef::Config[:validation_key])}/client.rb"
100
- if File.exist?(client_rb_file)
101
- output "client.rb file #{client_rb_file} already exists. Skipping ..."
102
- else
100
+ # if File.exist?(client_rb_file)
101
+ # output "client.rb file #{client_rb_file} already exists. Skipping ..."
102
+ # else
103
103
  output "Writing #{client_rb_file} ..."
104
104
  write_file(client_rb_file, <<-EOM)
105
105
  current_dir = File.dirname(__FILE__)
@@ -110,7 +110,7 @@ validation_client_name "#{organization}-validator"
110
110
  chef_server_url "#{Chef::Config[:api_server_url]}/organizations/#{organization}"
111
111
  client_key "\#{current_dir}/\#{Socket.gethostname}.pem"
112
112
  EOM
113
- end
113
+ # end
114
114
 
115
115
  # Write out client validation.pem
116
116
  if File.exist?(Chef::Config[:validation_key]) && !config[:regen_validator_key]
@@ -127,9 +127,9 @@ EOM
127
127
 
128
128
  # Write out workstation knife.rb
129
129
  client_rb_file = "#{Chef::Config[:chef_repo_path]}/.chef/knife.rb"
130
- if File.exist?(client_rb_file)
131
- output "client.rb file #{client_rb_file} already exists. Skipping ..."
132
- else
130
+ # if File.exist?(client_rb_file)
131
+ # output "client.rb file #{client_rb_file} already exists. Skipping ..."
132
+ # else
133
133
  output "Writing #{client_rb_file} ..."
134
134
  write_file(client_rb_file, <<-EOM)
135
135
  current_dir = File.dirname(__FILE__)
@@ -141,7 +141,7 @@ validation_client_name "#{organization}-validator"
141
141
  validation_client_key "\#{current_dir}/#{organization}-validator.pem"
142
142
  chef_server_url "https://api.opscode.com/organizations/#{organization}"
143
143
  EOM
144
- end
144
+ # end
145
145
 
146
146
  # Write out workstation user.pem
147
147
  user_pem_file = "#{Chef::Config[:chef_repo_path]}/.chef/#{Chef::Config[:username]}.pem"
@@ -1,3 +1,3 @@
1
1
  module KnifeEasybake
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
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.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: