Class: Compass::Commands::ProjectBase

Inherits:
Base
  • Object
show all
Defined in:
lib/compass/commands/project_base.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#working_path

Attributes included from Actions

#logger

Instance Method Summary collapse

Methods inherited from Base

#perform

Methods included from Actions

#basename, #compile, #copy, #directory, #relativize, #separate, #strip_trailing_separator, #write_file

Constructor Details

#initialize(working_path, options = {}) ⇒ ProjectBase

Returns a new instance of ProjectBase.



11
12
13
14
15
# File 'lib/compass/commands/project_base.rb', line 11

def initialize(working_path, options = {})
  super(working_path, options)
  self.project_name = determine_project_name(working_path, options)
  Compass.configuration.project_path = determine_project_directory(working_path, options)
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



9
10
11
# File 'lib/compass/commands/project_base.rb', line 9

def options
  @options
end

#project_directory=(value) ⇒ Object

Sets the attribute project_directory

Parameters:

  • value

    the value to set the attribute project_directory to.



9
10
11
# File 'lib/compass/commands/project_base.rb', line 9

def project_directory=(value)
  @project_directory = value
end

#project_nameObject

Returns the value of attribute project_name.



9
10
11
# File 'lib/compass/commands/project_base.rb', line 9

def project_name
  @project_name
end

Instance Method Details

#executeObject



17
18
19
20
# File 'lib/compass/commands/project_base.rb', line 17

def execute
  configure!
  super
end