knife-setup 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -76,15 +76,16 @@ class Chef
76
76
  :default => false
77
77
 
78
78
  option :environment,
79
+ :short => "-e ENVIRONMENT",
79
80
  :long => "--environment ENVIRONMENT",
80
81
  :description => "Set environment for node",
81
82
  :default => "_default"
82
83
 
83
- option :runchef,
84
- :long => "--runchef",
84
+ option :norunchef,
85
+ :long => "--norunchef",
85
86
  :description => "Run chef after install bootstrap",
86
87
  :boolean => true,
87
- :default => false
88
+ :default => true
88
89
 
89
90
  option :nobootstrap,
90
91
  :long => "--nobootstrap",
@@ -184,7 +185,7 @@ class Chef
184
185
  bootstrap_client unless config[:nobootstrap]
185
186
  set_run_list(get_node, config[:run_list]) unless config[:run_list].empty?
186
187
  set_env(get_node, config[:environment]) unless config[:environment] == "_default"
187
- knife_ssh("chef-client").run if config[:runchef]
188
+ knife_ssh("chef-client").run unless config[:norunchef]
188
189
 
189
190
  end
190
191
 
@@ -1,5 +1,5 @@
1
1
  module Knife
2
2
  module Setup
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
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.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: