lib/guard/compass.rb in guard-compass-0.0.5 vs lib/guard/compass.rb in guard-compass-0.0.6

- old
+ new

@@ -7,48 +7,50 @@ module Guard class Compass < Guard attr_reader :updater - VERSION = '0.0.5' + VERSION = '0.0.6' def initialize(watchers = [], options = {}) - @watchers, @options = watchers, options super - @options.merge!(:path => File.expand_path(File.dirname(".")) ) + @options[:workdir] = File.expand_path(File.dirname(".")) end # Guard Interface Implementation # Compile all the sass|scss stylesheets def start - super create_updater + UI.info "Guard::Compass is watching at your stylesheets." + true end def stop - super @updater = nil + true end # Reload the configuration def reload - super create_updater + true end # Compile all the sass|scss stylesheets def run_all @updater.execute + true end # Compile the changed stylesheets def run_on_change(paths) @updater.execute + true end private def create_updater - @updater = ::Compass::Commands::UpdateProject.new(@options[:path], @options) + @updater = ::Compass::Commands::UpdateProject.new(@options[:workdir] , @options) end end end \ No newline at end of file