Module: Sidekick::Actions::Rake

Defined in:
lib/sidekick/actions/rake.rb

Instance Method Summary collapse

Instance Method Details

#rake(task_name) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/sidekick/actions/rake.rb', line 4

def rake(task_name)
  needs 'rake', 'to invoke rake tasks'
  handling Exception, "rake #{task_name}" do
    load 'Rakefile'
    Rake::application[task_name].invoke
  end
end