Class: Compass::Commands::ValidateProject

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

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 inherited from ProjectBase

#execute

Methods inherited from Base

#execute

Methods included from Actions

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

Instance Method Details

#performObject



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, options).perform
  Validator.new(project_css_subdirectory).validate()
end