Skip to content

Commit

Permalink
fix hardcoded paths
Browse files Browse the repository at this point in the history
  • Loading branch information
stereosteve committed Oct 8, 2011
1 parent 00704f0 commit c117d9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/guard/stitch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ class Stitch < Guard

def initialize(watchers = [], options = {})
super(watchers, options)
@paths = options.delete(:paths)
@dependencies = options.delete(:dependencies)
@output = options.delete(:output)
end

Expand All @@ -30,7 +32,7 @@ def run_on_change(paths)
private
def stitch
begin
js = ::Stitch::Package.new(:paths => ["app"]).compile
js = ::Stitch::Package.new(:paths => @paths, :dependencies => @dependencies).compile
open(@output, 'w') {|f| f << js}
UI.info "Stitched #{@input} to #{@output}"
Notifier.notify "Stitched #{@input} to #{@output}", :title => 'Stitch'
Expand Down

0 comments on commit c117d9f

Please sign in to comment.