Module: Compass::Commands::InstallerCommand
- Includes:
- Installers
- Included in:
- StampPattern, WriteConfiguration
- Defined in:
- lib/compass/commands/installer_command.rb
Instance Method Summary collapse
Instance Method Details
#app ⇒ Object
21 22 23 |
# File 'lib/compass/commands/installer_command.rb', line 21 def app @app ||= Compass::AppIntegration.lookup(Compass.configuration.project_type) end |
#configure! ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/compass/commands/installer_command.rb', line 8 def configure! if respond_to?(:is_project_creation?) && is_project_creation? Compass.add_configuration(.delete(:project_type) || :stand_alone) else Compass.add_project_configuration(:project_type => .delete(:project_type)) end Compass.add_configuration(, 'command_line') if File.exists?(Compass.configuration.extensions_path) Compass::Frameworks.discover(Compass.configuration.extensions_path) end Compass.add_configuration(installer.completed_configuration, 'installer') end |
#installer ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/compass/commands/installer_command.rb', line 25 def installer @installer ||= if [:bare] Compass::Installers::BareInstaller.new(*installer_args) else app.installer(*installer_args) end end |
#installer_args ⇒ Object
33 34 35 |
# File 'lib/compass/commands/installer_command.rb', line 33 def installer_args [template_directory([:pattern] || "project"), project_directory, ] end |