module RGitFlow::Console
Protected Instance Methods
execute(command)
click to toggle source
# File lib/rgitflow/console.rb, line 8 def execute(command) if respond_to? 'debug' debug command.to_s end unless system(command.to_s) if respond_to? 'error' error "Command failed: #{command.to_s}" end abort end nil end
invoke(name)
click to toggle source
# File lib/rgitflow/console.rb, line 23 def invoke(name) Rake.application[name].reenable Rake.application[name].invoke end
multi_task(prefix, names)
click to toggle source
# File lib/rgitflow/console.rb, line 32 def multi_task(prefix, names) task prefix => names.map { |name| "#{prefix}:#{name}" } end
task?(name)
click to toggle source
# File lib/rgitflow/console.rb, line 28 def task?(name) Rake::Task.task_defined? name end