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

Version Path
spree-0.8.4 vendor/extensions/tax_calculator/lib/tasks/tax_calculator_extension_tasks.rake
spree-0.8.5 vendor/extensions/tax_calculator/lib/tasks/tax_calculator_extension_tasks.rake
spree-0.4.0 vendor/extensions/tax_calculator/lib/tasks/tax_calculator_extension_tasks.rake
spree-0.4.1 vendor/extensions/tax_calculator/lib/tasks/tax_calculator_extension_tasks.rake
spree-0.5.0 vendor/extensions/tax_calculator/lib/tasks/tax_calculator_extension_tasks.rake
spree-0.6.0 vendor/extensions/tax_calculator/lib/tasks/tax_calculator_extension_tasks.rake
spree-0.5.1 vendor/extensions/tax_calculator/lib/tasks/tax_calculator_extension_tasks.rake
spree-0.7.1 vendor/extensions/tax_calculator/lib/tasks/tax_calculator_extension_tasks.rake
spree-0.7.0 vendor/extensions/tax_calculator/lib/tasks/tax_calculator_extension_tasks.rake
spree-0.8.0 vendor/extensions/tax_calculator/lib/tasks/tax_calculator_extension_tasks.rake
spree-0.8.1 vendor/extensions/tax_calculator/lib/tasks/tax_calculator_extension_tasks.rake
spree-0.8.2 vendor/extensions/tax_calculator/lib/tasks/tax_calculator_extension_tasks.rake
spree-0.8.3 vendor/extensions/tax_calculator/lib/tasks/tax_calculator_extension_tasks.rake