Sha256: 17740a00e10dd9938c175208a28bd44c1c0472064350bde125e2a97ed2f558f5

Contents?: true

Size: 585 Bytes

Versions: 45

Compression:

Stored size: 585 Bytes

Contents

# Doesn't works if it's included in Rails, should be explicitly copied to tasks folder.

namespace :asset do
  namespace :packager do

    desc "Merge and compress assets"
    task :build_all => :environment do
      require 'yaml'
      require 'asset_packager/asset_packager'
      
      AssetPackager.build_all
      
      puts "Asset builded"
    end

    desc "Delete all asset builds"
    task :delete_all do
      require 'yaml'
      require 'asset_packager/asset_packager'
      
      AssetPackager.delete_all
      
      puts "Asset Builds deleted"
    end
    
  end
end

Version data entries

45 entries across 45 versions & 2 rubygems

Version Path
crystal-ext-0.0.3 lib/rails_ext/asset_packager/tasks.rb
crystal-ext-0.0.2 lib/rails_ext/asset_packager/tasks.rb
crystal-ext-0.0.1 lib/rails_ext/asset_packager/tasks.rb
rails-ext-0.3.29 lib/rails_ext/asset_packager/tasks.rb
rails-ext-0.3.28 lib/rails_ext/asset_packager/tasks.rb
rails-ext-0.3.27 lib/rails_ext/asset_packager/tasks.rb
rails-ext-0.3.25 lib/rails_ext/asset_packager/tasks.rb
rails-ext-0.3.24 lib/rails_ext/asset_packager/tasks.rb
rails-ext-0.3.23 lib/rails_ext/asset_packager/tasks.rb
rails-ext-0.3.22 lib/rails_ext/asset_packager/tasks.rb
rails-ext-0.3.21 lib/rails_ext/asset_packager/tasks.rb
rails-ext-0.3.20 lib/rails_ext/asset_packager/tasks.rb
rails-ext-0.3.19 lib/rails_ext/asset_packager/tasks.rb
rails-ext-0.3.18 lib/rails_ext/asset_packager/tasks.rb
rails-ext-0.3.17 lib/rails_ext/asset_packager/tasks.rb
rails-ext-0.3.16 lib/rails_ext/asset_packager/tasks.rb
rails-ext-0.3.15 lib/rails_ext/asset_packager/tasks.rb
rails-ext-0.3.14 lib/rails_ext/asset_packager/tasks.rb
rails-ext-0.3.13 lib/rails_ext/asset_packager/tasks.rb
rails-ext-0.3.12 lib/rails_ext/asset_packager/tasks.rb