Skip to content

Instantly share code, notes, and snippets.

@JoelQ
Created October 24, 2016 17:37
Show Gist options
  • Save JoelQ/66c6f1403689c626797aef2e65ca8f6e to your computer and use it in GitHub Desktop.
Save JoelQ/66c6f1403689c626797aef2e65ca8f6e to your computer and use it in GitHub Desktop.
namespace :dependencies do
task :pre_task do
puts "pre-task"
end
task task1: :pre_task do
puts "task1"
end
task task2: :pre_task do
puts "task2"
end
task task3: :pre_task do
puts "task3"
end
task meta_task: [:task1, :task2] do
puts "meta task"
end
task all: [:meta_task, :task2, :task3] do
puts "all"
end
end
% rake dependencies:all
pre-task
task1
task2
meta task
task3
all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment