Class: Compass::Commands::UpdateProject

Inherits:
ProjectBase show all
Defined in:
lib/compass/commands/update_project.rb

Direct Known Subclasses

WatchProject

Instance Attribute Summary

Attributes inherited from ProjectBase

#options, #project_name

Attributes inherited from Base

#options, #working_path

Attributes included from Actions

#logger

Instance Method Summary collapse

Methods included from Actions

#basename, #compile, #copy, #directory, #relativize, #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, options)
  super
  assert_project_directory_exists!
end

Instance Method Details

#performObject



13
14
15
16
17
18
19
20
21
# File 'lib/compass/commands/update_project.rb', line 13

def perform
  read_project_configuration
  Compass.configuration.set_maybe(options)
  Compass.configuration.set_defaults!
  Compass::Compiler.new(working_path,
                        projectize(Compass.configuration.sass_dir),
                        projectize(Compass.configuration.css_dir),
                        Compass.sass_engine_options).run
end