class ChefCLI::Command::GemForwarder
Forwards all commands to rubygems.
def needs_version?(params)
appropriately (showing the gem version, or installing a specific version
call this class' run method, so that Gem::GemRunner can handle the -v flag
Lazy solution: By automatically returning false, we force ChefCLI::Base to
def needs_version?(params) false end
def run(params)
def run(params) retval = Gem::GemRunner.new.run( params.clone ) retval.nil? ? true : retval rescue Gem::SystemExitException => e exit( e.exit_code ) end