Class: Compass::Commands::ValidateProject
- Inherits:
-
ProjectBase
- Object
- Base
- ProjectBase
- Compass::Commands::ValidateProject
- Defined in:
- lib/compass/commands/validate_project.rb
Instance Attribute Summary
Attributes inherited from ProjectBase
Attributes inherited from Base
Attributes included from Actions
Instance Method Summary collapse
-
#initialize(working_path, options) ⇒ ValidateProject
constructor
A new instance of ValidateProject.
- #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) ⇒ ValidateProject
Returns a new instance of ValidateProject.
8 9 10 11 |
# File 'lib/compass/commands/validate_project.rb', line 8 def initialize(working_path, ) super assert_project_directory_exists! end |
Instance Method Details
#perform ⇒ Object
13 14 15 16 17 |
# File 'lib/compass/commands/validate_project.rb', line 13 def perform require File.join(File.dirname(__FILE__), '..', 'validator') UpdateProject.new(working_path, ).perform Validator.new(project_css_subdirectory).validate() end |