Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (14 sloc) 0.587 kB
#!/usr/bin/env rake
task :default => [:test]
task :test do
sh("bundle exec rspec spec/")
end
desc "commit and push"
task :cp do
system "git add ."
nouns = ["beer", "wine", "vodka", "tequila", "whiskey", "vermouth", "jelly", "soda", "milk", "brew", "orange juice", "birch juice", "yogurt", "rum", "port", "mate", "green tea", "Ceylon tea", "Lapacho", "Catuaba", "cranberry liqueur"]
quantity = Random.rand(2...100500)
ni = Random.rand(0...(nouns.length - 1))
system "git commit -m \"mac-r drank #{quantity} bottles of #{nouns[ni]}\""
system "git push origin master"
end
Jump to Line
Something went wrong with that request. Please try again.