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
#configure! ⇒ Object
8 9 10 11 12 13 |
# File 'lib/compass/commands/installer_command.rb', line 8 def configure! read_project_configuration Compass.configuration.set_maybe() Compass.configuration.default_all(installer.configuration_defaults) Compass.configuration.set_defaults! end |
#installer ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/compass/commands/installer_command.rb', line 15 def installer @installer ||= case [:project_type] when :stand_alone StandAloneInstaller.new *installer_args when :rails RailsInstaller.new *installer_args else raise "Unknown project type: #{[:project_type].inspect}" end end |
#installer_args ⇒ Object
26 27 28 |
# File 'lib/compass/commands/installer_command.rb', line 26 def installer_args [template_directory([:pattern]), project_directory, ] end |