Skip to content
Browse files

Add --target option to build.

  • Loading branch information...
1 parent 8a6370c commit f7a4e04601af9015f9127492eeb590c0d0256af9 @ejholmes ejholmes committed Jun 25, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/catapult/cli.rb
View
6 lib/catapult/cli.rb
@@ -14,8 +14,10 @@ def self.source_root
desc 'build [asset1 asset2..]', 'Build project'
+ method_option :target, :aliases => '-t', :desc => 'Directory to compile assets to'
+
def build(*assets)
- target = Pathname('./public/assets')
+ target = Pathname(options[:target] || './public/assets')
say "Building: #{Catapult.root}"
@@ -59,4 +61,4 @@ def new(name)
directory('templates/app', name)
end
end
-end
+end

0 comments on commit f7a4e04

Please sign in to comment.
Something went wrong with that request. Please try again.