2009-01-25 22:27:08 +00:00
|
|
|
require File.join(File.dirname(__FILE__), 'project_base')
|
2009-02-08 10:22:10 +00:00
|
|
|
require File.join(Compass.lib_directory, 'compass', 'compiler')
|
2008-08-23 17:00:46 +00:00
|
|
|
|
|
|
|
module Compass
|
|
|
|
module Commands
|
2009-01-25 22:27:08 +00:00
|
|
|
class UpdateProject < ProjectBase
|
2008-08-23 17:00:46 +00:00
|
|
|
|
2009-02-04 17:10:07 +00:00
|
|
|
def initialize(working_path, options)
|
|
|
|
super
|
|
|
|
assert_project_directory_exists!
|
|
|
|
end
|
2008-08-23 17:00:46 +00:00
|
|
|
|
|
|
|
def perform
|
2009-05-02 22:07:14 +00:00
|
|
|
compiler = Compass::Compiler.new(working_path,
|
|
|
|
projectize(Compass.configuration.sass_dir),
|
|
|
|
projectize(Compass.configuration.css_dir),
|
|
|
|
Compass.sass_engine_options.merge(:quiet => options[:quiet],
|
|
|
|
:force => options[:force]))
|
|
|
|
compiler.run
|
2009-02-04 17:10:07 +00:00
|
|
|
end
|
|
|
|
|
2008-08-23 17:00:46 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|