public
Description: Magically fix your projects overnight!
Homepage: http://drnicwilliams.com
Clone URL: git://github.com/jbarnette/dr-nic-magic-awesome.git
100644 16 lines (13 sloc) 0.365 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require "rubygems"
require "rake"
require "active_support"
 
task :default do
  puts "It is now #{Time.now.utc + 10.hours} in Brisbane, Australia"
end
 
namespace :nic do
  GOOD_NIGHTS_SLEEP = 9.hours
  
  desc "Notifies you when to expect Dr. Nic"
  task :arrives do
    puts "Nic arrives at #{(Time.now + GOOD_NIGHTS_SLEEP).strftime('%H:%M on %d-%m-%Y')}"
  end
end