Module: Sinatra::AssetPack::Builder

Included in:
Options
Defined in:
lib/sinatra/assetpack/builder.rb

Instance Method Summary collapse

Instance Method Details

#build!(&blk) ⇒ Object



4
5
6
7
# File 'lib/sinatra/assetpack/builder.rb', line 4

def build!(&blk)
  build_packages!
  build_files!
end

#build_files!(&blk) ⇒ Object



13
14
15
# File 'lib/sinatra/assetpack/builder.rb', line 13

def build_files!(&blk)
  files.each { |path, local| build_file!(path, local, &blk) }
end

#build_packages!(&blk) ⇒ Object



9
10
11
# File 'lib/sinatra/assetpack/builder.rb', line 9

def build_packages!(&blk)
  packages.each { |_, pack| build_package!(pack, &blk) }
end