Skip to content

Instantly share code, notes, and snippets.

@zacharyc
Created April 16, 2014 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zacharyc/10929388 to your computer and use it in GitHub Desktop.
Save zacharyc/10929388 to your computer and use it in GitHub Desktop.
additional action or testing parameters in rake files
desc 'create a test file to see if cron is working'
task :create_test_file, [:push] do |t, args|
if(args.push)
puts "push provided"
end
File.open("out.txt", 'w') {|f| f.write("This is a test file") }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment