Sha256: c04a1c89e2b6d9258b9805b2299992b2fc9597cd179382d499f3baddbc2b1930
Contents?: true
Size: 646 Bytes
Versions: 24
Compression:
Stored size: 646 Bytes
Contents
namespace :spree do namespace :extensions do namespace :payment_gateway do desc "Copies public assets of the Payment Gateway to the instance public/ directory." task :update => :environment do is_svn_or_dir = proc {|path| path =~ /\.svn/ || File.directory?(path) } Dir[PaymentGatewayExtension.root + "/public/**/*"].reject(&is_svn_or_dir).each do |file| path = file.sub(PaymentGatewayExtension.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
24 entries across 24 versions & 2 rubygems