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.
@@ -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
- opt_parser.parse!(args)
81
- [options, args]
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)
@@ -1,3 +1,3 @@
1
1
  module RidleyExec
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ridley-exec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: