ridley-exec 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ridley-exec/configuration.rb +4 -3
- data/lib/ridley-exec/version.rb +1 -1
- metadata +1 -1
@@ -46,7 +46,6 @@ module RidleyExec
|
|
46
46
|
end
|
47
47
|
|
48
48
|
options[:knife_path] = env_default(:CHEF_KNIFE_PATH, nil)
|
49
|
-
puts "Knife path nil? #{options[:knife_path].nil?}"
|
50
49
|
opts.on('-p [KNIFE_PATH]', '--knife-path [KNIFE_PATH]', String, "Path to the knife.rb file to use for config (empty string does search)") do |path|
|
51
50
|
path = '' if path.nil?
|
52
51
|
options[:knife_path] = path
|
@@ -77,8 +76,10 @@ module RidleyExec
|
|
77
76
|
end
|
78
77
|
end
|
79
78
|
|
80
|
-
|
81
|
-
[
|
79
|
+
# Stops on first non-option param
|
80
|
+
non_param = []
|
81
|
+
args = opt_parser.order(args) {|p| non_param << p; opt_parser.terminate}
|
82
|
+
[options, non_param + args]
|
82
83
|
end
|
83
84
|
|
84
85
|
def self.api_from_knife(path)
|
data/lib/ridley-exec/version.rb
CHANGED