Skip to content

Instantly share code, notes, and snippets.

@crguezl
Created December 17, 2011 09:35
Show Gist options
  • Save crguezl/1489796 to your computer and use it in GitHub Desktop.
Save crguezl/1489796 to your computer and use it in GitHub Desktop.
[09:34][~/rubytesting/rake]$ cat -n GetReady.rake
1 task :turn_off_alarm do
2 puts "Turned off alarm. Would have liked 5 more minutes, though."
3 end
4
5 task :groom_myself do
6 puts "Brushed teeth."
7 puts "Showered."
8 puts "Shaved."
9 end
10
11 task :make_coffee do
12 cups = ENV["COFFEE_CUPS"] || 2
13 puts "Made #{cups} cups of coffee. Shakes are gone."
14 end
15
16 task :walk_dog do
17 puts "Dog walked."
18 end
19
20 task :ready_for_the_day => [:turn_off_alarm, :groom_myself, :make_coffee, :walk_dog] do
21 puts "Ready for the day!"
22 end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment