knife-setup 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -99,12 +99,6 @@ class Chef
99
99
  :proc => lambda { |o| o.split(/[\s,]+/) },
100
100
  :default => []
101
101
 
102
- option :chef_run_list,
103
- :long => "--chef-run-list RUN_LIST",
104
- :description => "Comma separated list of roles/recipes to apply",
105
- :proc => lambda { |o| o.split(/[\s,]+/) },
106
- :default => []
107
-
108
102
  option :no_host_key_verify,
109
103
  :long => "--no-host-key-verify",
110
104
  :description => "Disable host key verification",
@@ -134,7 +128,7 @@ class Chef
134
128
  raise Errno::ENOENT
135
129
  end
136
130
 
137
- Chef::Log.debug("Found bootstrap template in #{File.dirname(template)}")
131
+ ui.info("Found bootstrap template in #{File.dirname(template)}")
138
132
 
139
133
  IO.read(template).chomp
140
134
  end
@@ -188,7 +182,7 @@ class Chef
188
182
  ui.info("Setup Chef on #{ui.color(@node_name, :bold)}")
189
183
 
190
184
  bootstrap_client unless config[:nobootstrap]
191
- set_run_list(get_node, config[:chef_run_list]) if config[:chef_run_list]
185
+ set_run_list(get_node, config[:run_list]) unless config[:run_list].empty?
192
186
  set_env(get_node, config[:environment]) unless config[:environment] == "_default"
193
187
  knife_ssh("chef-client").run if config[:runchef]
194
188
 
@@ -1,5 +1,5 @@
1
1
  module Knife
2
2
  module Setup
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-setup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-25 00:00:00.000000000 Z
12
+ date: 2013-01-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef