Skip to content

Instantly share code, notes, and snippets.

@arockwell
Created June 22, 2011 20:57
Show Gist options
  • Select an option

  • Save arockwell/1041171 to your computer and use it in GitHub Desktop.

Select an option

Save arockwell/1041171 to your computer and use it in GitHub Desktop.
first iteration of rake task definition
files = [
:a_file => "/path/to/a_file",
:b_file => "/path/to/b_file",
:c_file => "/path/to/c_file"
]
desc "Process files"
task :process_files do
files.each |file_name, file_location|
process_file(file_name, file_location)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment