lib/chef-dk/command/exec.rb in chef-dk-0.3.5 vs lib/chef-dk/command/exec.rb in chef-dk-0.4.0
- old
+ new
@@ -28,9 +28,18 @@
# ensure the custom PATH is honored when finding the command to exec
omnibus_env.each {|var, value| ENV[var] = value }
exec(*params)
raise "Exec failed without an exception, your ruby is buggy" # should never get here
end
+
+ def needs_version?(params)
+ # Force version to get passed down to command
+ false
+ end
+
+ def needs_help?(params)
+ ['-h', '--help'].include? params[0]
+ end
end
end
end