class Redmine::CLI::Runner
Public Instance Methods
run()
click to toggle source
# File lib/redmine/cli/runner.rb, line 11 def run perform end
Private Instance Methods
arguments()
click to toggle source
# File lib/redmine/cli/runner.rb, line 27 def arguments @arguments ||= Redmine::CLI::Parser.new(cli_args).arguments end
cli_args()
click to toggle source
# File lib/redmine/cli/runner.rb, line 17 def cli_args ARGV end
config()
click to toggle source
# File lib/redmine/cli/runner.rb, line 21 def config @config ||= Redmine::Config.new(config_filename) rescue puts "Warning: Invalid or missing #{config_filename}" end
config_filename()
click to toggle source
# File lib/redmine/cli/runner.rb, line 36 def config_filename 'config.yml' end
perform()
click to toggle source
# File lib/redmine/cli/runner.rb, line 31 def perform command = CommandFactory.new(arguments, config).command command.execute end