Class: Compass::Commands::StampPattern
- Inherits:
-
ProjectBase
- Object
- Base
- ProjectBase
- Compass::Commands::StampPattern
- Includes:
- InstallerCommand
- Defined in:
- lib/compass/commands/stamp_pattern.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from ProjectBase
Attributes inherited from Base
Attributes included from Actions
Instance Method Summary collapse
-
#initialize(working_path, options) ⇒ StampPattern
constructor
A new instance of StampPattern.
- #is_project_creation? ⇒ Boolean
-
#perform ⇒ Object
all commands must implement perform.
- #template_directory(pattern) ⇒ Object
Methods included from InstallerCommand
#configure!, #installer, #installer_args
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) ⇒ StampPattern
Returns a new instance of StampPattern.
11 12 13 |
# File 'lib/compass/commands/stamp_pattern.rb', line 11 def initialize(working_path, ) super(working_path, ) end |
Instance Method Details
#is_project_creation? ⇒ Boolean
23 24 25 |
# File 'lib/compass/commands/stamp_pattern.rb', line 23 def is_project_creation? false end |
#perform ⇒ Object
all commands must implement perform
16 17 18 19 20 21 |
# File 'lib/compass/commands/stamp_pattern.rb', line 16 def perform installer.init installer.run(:skip_finalization => true) UpdateProject.new(working_path, ).perform if installer.compilation_required? installer.finalize(:create => is_project_creation?) end |
#template_directory(pattern) ⇒ Object
27 28 29 |
# File 'lib/compass/commands/stamp_pattern.rb', line 27 def template_directory(pattern) File.join(framework.templates_directory, pattern) end |