From 776b772c085e8fba5ace9cb24e5502a81b47fd8b Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Thu, 5 Aug 2010 21:16:51 -0700 Subject: [PATCH] [Rails] Don't emit configuration files when installing extensions into an existing project. --- lib/compass/commands/stamp_pattern.rb | 2 +- lib/compass/installers/base.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compass/commands/stamp_pattern.rb b/lib/compass/commands/stamp_pattern.rb index fb45bf34..eedacc70 100644 --- a/lib/compass/commands/stamp_pattern.rb +++ b/lib/compass/commands/stamp_pattern.rb @@ -72,7 +72,7 @@ Options: # all commands must implement perform def perform installer.init - installer.run(:skip_finalization => true) + installer.run(:skip_finalization => true, :skip_preparation => true) UpdateProject.new(working_path, options).perform if installer.compilation_required? installer.finalize(options.merge(:create => is_project_creation?)) end diff --git a/lib/compass/installers/base.rb b/lib/compass/installers/base.rb index 079f36b4..36c23d6d 100644 --- a/lib/compass/installers/base.rb +++ b/lib/compass/installers/base.rb @@ -29,7 +29,7 @@ module Compass # Every installer must conform to the installation strategy of prepare, install, and then finalize. # A default implementation is provided for each step. def run(run_options = {}) - prepare + prepare unless run_options[:skip_preparation] install unless options[:prepare] finalize(options.merge(run_options)) unless options[:prepare] || run_options[:skip_finalization] end