Skip to content

Instantly share code, notes, and snippets.

@crguezl
Created December 17, 2011 09:36
Show Gist options
  • Save crguezl/1489797 to your computer and use it in GitHub Desktop.
Save crguezl/1489797 to your computer and use it in GitHub Desktop.
task :turn_off_alarm do
puts "Turned off alarm. Would have liked 5 more minutes, though."
end
task :groom_myself do
puts "Brushed teeth."
puts "Showered."
puts "Shaved."
end
task :make_coffee do
cups = ENV["COFFEE_CUPS"] || 2
puts "Made #{cups} cups of coffee. Shakes are gone."
end
task :walk_dog do
puts "Dog walked."
end
task :ready_for_the_day => [:turn_off_alarm, :groom_myself, :make_coffee, :walk_dog] do
puts "Ready for the day!"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment