Permalink
Browse files

Merge pull request #3 from lucasmazza/whitelist-assets

Add support to filter the assets that should be precompiled
  • Loading branch information...
2 parents b0b4c58 + 408c7bc commit d718d5ec2c24449c041a5aa99e45f0b09e7e7e42 @maccman committed Jun 20, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/catapult/cli.rb
View
@@ -12,14 +12,14 @@ def self.source_root
File.expand_path('../../..', __FILE__)
end
- desc 'build', 'Build project'
+ desc 'build [asset1 asset2..]', 'Build project'
- def build
+ def build(*assets)
target = Pathname('./public/assets')
say "Building: #{Catapult.root}"
- Catapult.environment.each_logical_path do |logical_path|
+ Catapult.environment.each_logical_path(assets) do |logical_path|
if asset = Catapult.environment.find_asset(logical_path)
filename = target.join(logical_path)
FileUtils.mkpath(filename.dirname)

0 comments on commit d718d5e

Please sign in to comment.