Sha256: c66dd5148a50911c4bc9277ddf26d9577ef40bf038e93d005f44c68f537291ae

Contents?: true

Size: 620 Bytes

Versions: 1

Compression:

Stored size: 620 Bytes

Contents

module AssetsBooster 
  class Packager
    cattr_accessor :packages

    def self.init
      require "assets_booster/configuration"
      Configuration.load
    end

    def self.merge_all
      each_package { |package| package.merge }
    end

    def self.compile_all
      each_package { |package| package.compile }
    end
    
    def self.delete_all
      each_package { |package| package.delete }
    end
    
    private
    
    def self.each_package(&block)
      packages.each_value do |packages|
        packages.each_value do |package|
          block.call(package)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
assets_booster-0.0.1 lib/assets_booster/packager.rb