Skip to content

Instantly share code, notes, and snippets.

directory "tmp"
file "tmp/hello.tmp" => "tmp" do
sh "echo 'Hello' > 'tmp/hello.tmp'"
end
task :default => 'morning:turn_off_alarm'
namespace :morning do
desc "Turn off alarm."
ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS.merge!({
:quick => "%m %d, %Y at %I:%M %p",
:end_date => "%B %d, %Y"
})
ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.merge!({
:for_a_list => "%B %d, %Y"
})