Skip to content

Instantly share code, notes, and snippets.

@empr
Created January 24, 2012 13:27
Show Gist options
  • Select an option

  • Save empr/1670172 to your computer and use it in GitHub Desktop.

Select an option

Save empr/1670172 to your computer and use it in GitHub Desktop.
rake task to create a new post with title "%Y-%m-%d" for octopress
desc 'Create a new post with title "%Y-%m-%d"'
task :new do
Rake::Task[:new_post].invoke(Time.now.strftime("%Y-%m-%d"))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment