Class: Compass::Commands::ProjectBase
- Inherits:
-
Base
- Object
- Base
- Compass::Commands::ProjectBase
- Defined in:
- lib/compass/commands/project_base.rb
Direct Known Subclasses
GenerateGridBackground, Imports, Interactive, ListFrameworks, Sprite, StampPattern, UnpackExtension, UpdateProject, ValidateProject, WriteConfiguration
Instance Attribute Summary (collapse)
-
- (Object) options
Returns the value of attribute options.
-
- (Object) project_directory
writeonly
Sets the attribute project_directory.
-
- (Object) project_name
Returns the value of attribute project_name.
Attributes inherited from Base
Attributes included from Actions
Instance Method Summary (collapse)
- - (Object) execute
-
- (ProjectBase) initialize(working_path, options = {})
constructor
A new instance of ProjectBase.
Methods inherited from Base
#failed!, #perform, register, #successful?
Methods included from Actions
#basename, #copy, #directory, #log_action, #process_erb, #relativize, #remove, #separate, #strip_trailing_separator, #write_file
Constructor Details
- (ProjectBase) initialize(working_path, options = {})
A new instance of ProjectBase
11 12 13 14 15 16 |
# File 'lib/compass/commands/project_base.rb', line 11 def initialize(working_path, = {}) super(working_path, ) self.project_name = determine_project_name(working_path, ) Compass.add_configuration({:project_path => determine_project_directory(working_path, )}, "implied") configure! end |
Instance Attribute Details
- (Object) options
Returns the value of attribute options
9 10 11 |
# File 'lib/compass/commands/project_base.rb', line 9 def @options end |
- (Object) project_directory=(value)
Sets the attribute project_directory
9 10 11 |
# File 'lib/compass/commands/project_base.rb', line 9 def project_directory=(value) @project_directory = value end |
- (Object) project_name
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
- (Object) execute
18 19 20 |
# File 'lib/compass/commands/project_base.rb', line 18 def execute super end |