]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/composite_primary_keys-1.1.0/tasks/local_setup.rake
Patch composite_primary_keys to work around issue when one component of
[rails.git] / vendor / gems / composite_primary_keys-1.1.0 / tasks / local_setup.rake
1 namespace :local do
2   desc 'Copies over the same local files ready for editing'
3   task :setup do
4     sample_files = Dir[File.join(PROJECT_ROOT, "local/*.rb.sample")]
5     sample_files.each do |sample_file|
6       file = sample_file.sub(".sample","")
7       unless File.exists?(file)
8         puts "Copying #{sample_file} -> #{file}"
9         sh %{ cp #{sample_file} #{file} }
10       end
11     end
12   end
13 end