lib/guard/mthaml.rb in guard-mthaml-0.2.1 vs lib/guard/mthaml.rb in guard-mthaml-0.2.2

- old
+ new

@@ -1,8 +1,9 @@ require "guard" require "guard/plugin" require "guard/watcher" +require "pathname" module Guard class MtHaml < Plugin ### @@ -13,12 +14,12 @@ :input => "views/src", :output => "views", :environment => "php", :notifications => true, :compress_output => false, - :run_at_start => true, - :static_files => false + :static_files => false, + :run_at_start => true }.merge(options) super(options) if options[:input] @@ -31,14 +32,20 @@ ### def start run_all if options[:run_at_start] end + ### + # Stop running + ### def stop true end + ### + # On Guard reload + ### def reload run_all end ### @@ -69,9 +76,18 @@ output_dir = Pathname.new(options[:output]).realpath end compile_haml(input_file, output_dir) end + end + + ### + # Called when a watched file is removed + # + # @param {Array} paths + # Paths of changed files + #### + def run_on_removals(paths) end private ###