Sha256: 86a17c0b43dfaf6a5d2a62fa313e34dd8f852f59b1255b9eef2f1f36b96807df

Contents?: true

Size: 849 Bytes

Versions: 42

Compression:

Stored size: 849 Bytes

Contents

require File.join(Compass.lib_directory, 'compass', 'installers')

module Compass
  module Commands
    module InstallerCommand
      include Compass::Installers

      def configure!
        read_project_configuration
        Compass.configuration.set_maybe(options)
        Compass.configuration.default_all(installer.configuration_defaults)
        Compass.configuration.set_defaults!
      end

      def installer
        @installer ||= case options[:project_type]
        when :stand_alone
          StandAloneInstaller.new *installer_args
        when :rails
          RailsInstaller.new *installer_args
        else
          raise "Unknown project type: #{options[:project_type].inspect}"
        end
      end

      def installer_args
        [template_directory(options[:pattern]), project_directory, options]
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 4 rubygems

Version Path
alphasights-compass-0.8.12 lib/compass/commands/installer_command.rb
chriseppstein-compass-0.6.1 lib/compass/commands/installer_command.rb
chriseppstein-compass-0.6.10 lib/compass/commands/installer_command.rb
chriseppstein-compass-0.6.11 lib/compass/commands/installer_command.rb
chriseppstein-compass-0.6.12 lib/compass/commands/installer_command.rb
chriseppstein-compass-0.6.13 lib/compass/commands/installer_command.rb
chriseppstein-compass-0.6.14 lib/compass/commands/installer_command.rb
chriseppstein-compass-0.6.15 lib/compass/commands/installer_command.rb
chriseppstein-compass-0.6.2 lib/compass/commands/installer_command.rb
chriseppstein-compass-0.6.3 lib/compass/commands/installer_command.rb
chriseppstein-compass-0.6.4 lib/compass/commands/installer_command.rb
chriseppstein-compass-0.6.5 lib/compass/commands/installer_command.rb
chriseppstein-compass-0.6.6 lib/compass/commands/installer_command.rb
chriseppstein-compass-0.6.7 lib/compass/commands/installer_command.rb
chriseppstein-compass-0.6.8 lib/compass/commands/installer_command.rb
chriseppstein-compass-0.6.9 lib/compass/commands/installer_command.rb
chriseppstein-compass-0.7.0 lib/compass/commands/installer_command.rb
chriseppstein-compass-0.8.0 lib/compass/commands/installer_command.rb
chriseppstein-compass-0.8.1 lib/compass/commands/installer_command.rb
chriseppstein-compass-0.8.10 lib/compass/commands/installer_command.rb