Sha256: 5eb03e7e297e938be8be51dd57df204aa24afd07b1c2cab3461f92f079a3b4fc
Contents?: true
Size: 398 Bytes
Versions: 30
Compression:
Stored size: 398 Bytes
Contents
namespace :local do desc 'Copies over the same local files ready for editing' task :setup do sample_files = Dir[File.join(PROJECT_ROOT, "local/*.rb.sample")] sample_files.each do |sample_file| file = sample_file.sub(".sample","") unless File.exists?(file) puts "Copying #{sample_file} -> #{file}" sh %{ cp #{sample_file} #{file} } end end end end
Version data entries
30 entries across 30 versions & 5 rubygems