Skip to content

Commit

Permalink
do not forget to create dir structure
Browse files Browse the repository at this point in the history
  • Loading branch information
manufaktor committed Jun 18, 2011
1 parent e439e46 commit 7c08e64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/guard/haml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def run_all
def run_on_change(paths)
paths.each do |file|
output_file = get_output(file)
FileUtils.mkdir_p File.dirname(output_file)
File.open(output_file, 'w') { |f| f.write(compile_haml(file)) }
::Guard::UI.info "# compiled haml in '#{file}' to html in '#{output_file}'"
::Guard::Notifier.notify("# compiled haml in #{file}", :title => "Guard::Haml", :image => :success) if @options[:notifications]
Expand Down

0 comments on commit 7c08e64

Please sign in to comment.