class Patriot::Tool::PatriotCommand
new command can be added as follows require 'patriot/tool/patriot_command' module Hoge
Patriot::Tool::PatriotCommand.class_eval do desc 'fuga', 'fuga description' def fuga puts 'fuga' end end
end
Public Instance Methods
exit_on_failure?()
click to toggle source
# File lib/patriot/tool/patriot_command.rb, line 25 def exit_on_failure? return true end
symbolize_options(opts = {})
click to toggle source
# File lib/patriot/tool/patriot_command.rb, line 29 def symbolize_options(opts = {}) symbolized_options = {} opts.each{|k,v| symbolized_options[k.to_sym] = v } return symbolized_options end