Sha256: d503f9b54a36a6beebc77c317e108c95d022fe71b14cf4a052da462cf88a45fb
Contents?: true
Size: 648 Bytes
Versions: 13
Compression:
Stored size: 648 Bytes
Contents
namespace :spree do namespace :extensions do namespace :tax_calculator do desc "Copies public assets of the Tax Calculator to the instance public/ directory." task :update => :environment do is_svn_or_dir = proc {|path| path =~ /\.svn/ || File.directory?(path) } Dir[TaxCalculatorExtension.root + "/public/**/*"].reject(&is_svn_or_dir).each do |file| path = file.sub(TaxCalculatorExtension.root, '') directory = File.dirname(path) puts "Copying #{path}..." mkdir_p RAILS_ROOT + directory cp file, RAILS_ROOT + path end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems