Module: Compass::Commands::InstallerCommand
- Includes:
- Installers
- Included in:
- ExtensionCommand, StampPattern, WriteConfiguration
- Defined in:
- lib/compass/commands/installer_command.rb
Instance Method Summary collapse
Instance Method Details
#app ⇒ Object
15 16 17 |
# File 'lib/compass/commands/installer_command.rb', line 15 def app @app ||= Compass::AppIntegration.lookup(Compass.configuration.project_type) end |
#configure! ⇒ Object
8 9 10 11 12 13 |
# File 'lib/compass/commands/installer_command.rb', line 8 def configure! add_project_configuration Compass.add_configuration(, 'command_line') Compass.discover_extensions! Compass.add_configuration(installer.completed_configuration, 'installer') end |
#installer ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/compass/commands/installer_command.rb', line 19 def installer @installer ||= if [:bare] Compass::Installers::BareInstaller.new(*installer_args) else app.installer(*installer_args) end end |
#installer_args ⇒ Object
27 28 29 |
# File 'lib/compass/commands/installer_command.rb', line 27 def installer_args [template_directory([:pattern] || "project"), project_directory, ] end |