Class: Compass::Commands::UpdateProject
- Inherits:
-
ProjectBase
- Object
- Base
- ProjectBase
- Compass::Commands::UpdateProject
- Defined in:
- lib/compass/commands/update_project.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from ProjectBase
Attributes inherited from Base
Attributes included from Actions
Instance Method Summary collapse
-
#initialize(working_path, options) ⇒ UpdateProject
constructor
A new instance of UpdateProject.
- #new_compiler_instance(additional_options = {}) ⇒ Object
- #perform ⇒ Object
Methods inherited from ProjectBase
Methods inherited from Base
Methods included from Actions
#basename, #compile, #copy, #directory, #relativize, #remove, #separate, #strip_trailing_separator, #write_file
Constructor Details
#initialize(working_path, options) ⇒ UpdateProject
Returns a new instance of UpdateProject.
8 9 10 11 |
# File 'lib/compass/commands/update_project.rb', line 8 def initialize(working_path, ) super assert_project_directory_exists! end |
Instance Method Details
#new_compiler_instance(additional_options = {}) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/compass/commands/update_project.rb', line 24 def new_compiler_instance( = {}) Compass::Compiler.new(working_path, projectize(Compass.configuration.sass_dir), projectize(Compass.configuration.css_dir), Compass..merge(:quiet => [:quiet], :force => [:force]).merge()) end |
#perform ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/compass/commands/update_project.rb', line 13 def perform compiler = new_compiler_instance if compiler.sass_files.empty? = "Nothing to compile. If you're trying to start a new project, you have left off the directory argument.\n" << "Run \"compass -h\" to get help." raise Compass::Error, else compiler.run end end |