Browse files

Merge pull request #11 from mhayes/master

Allow users to compile stylesheets when Guard is started
  • Loading branch information...
2 parents 9669184 + a9333c9 commit bfc95d5b134bb06709d2951681ce453a9b3299e0 @oliamb oliamb committed Oct 7, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/guard/compass.rb
View
7 lib/guard/compass.rb
@@ -64,7 +64,12 @@ def valid_sass_path?
# Compile all the sass|scss stylesheets
def start
create_updater
- reporter.announce "Guard::Compass is waiting to compile your stylesheets."
+ if (options[:compile_on_start])
+ reporter.announce "Guard::Compass is going to compile your stylesheets."
+ perform
+ else
+ reporter.announce "Guard::Compass is waiting to compile your stylesheets."
+ end
true
end

0 comments on commit bfc95d5

Please sign in to comment.