module Patriot::Tool::PatriotCommands::Upgrade
upgrade tool
Public Instance Methods
upgrade(*path_to_gem)
click to toggle source
# File lib/patriot/tool/patriot_commands/upgrade.rb, line 10 def upgrade(*path_to_gem) opts = symbolize_options(options) conf = {:ignore_plugin => true} conf[:path] = opts[:config] if opts.has_key?(:config) config = load_config(conf) controller = Patriot::Controller::PackageController.new(config) controller.upgrade(path_to_gem.empty? ? nil : path_to_gem[0]) end