Class: Compass::AppIntegration::StandAlone::Installer

### Home Classes Methods

### In Files

- lib/compass/app_integration/stand_alone/installer.rb

### Parent

Compass::Installers::ManifestInstaller

### Methods

- #compilation_required?
- #completed_configuration
- #config_contents
- #config_files_exist?
- #finalize
- #init
- #prepare
- #write_configuration_files

### Class/Module Index

Quicksearch

- Compass
- Compass::Actions
- Compass::AppIntegration
- Compass::AppIntegration::Helpers
- Compass::AppIntegration::Rails
- Compass::AppIntegration::StandAlone
- Compass::AppIntegration::StandAlone::ConfigurationDefaults
- Compass::AppIntegration::StandAlone::Installer
- Compass::BrowserSupport
- Compass::Commands
- Compass::Commands::Base
- Compass::Commands::CleanProject
- Compass::Commands::CleanProjectOptionsParser
- Compass::Commands::CompileProjectOptionsParser
- Compass::Commands::ConfigurationOptionsParser
- Compass::Commands::CreateProject
- Compass::Commands::CreateProjectOptionsParser
- Compass::Commands::Default
- Compass::Commands::DefaultOptionsParser
- Compass::Commands::ExtensionCommand
- Compass::Commands::ExtensionOptionsParser
- Compass::Commands::ExtensionsOptionParser
- Compass::Commands::GenerateGridBackground
- Compass::Commands::GridBackgroundOptionsParser
- Compass::Commands::Help
- Compass::Commands::HelpOptionsParser
- Compass::Commands::Imports
- Compass::Commands::InstallerCommand
- Compass::Commands::Interactive
- Compass::Commands::InteractiveOptionsParser
- Compass::Commands::ListFrameworks
- Compass::Commands::MemoryDebugger
- Compass::Commands::PrintVersion
- Compass::Commands::ProjectBase
- Compass::Commands::ProjectStats
- Compass::Commands::Registry
- Compass::Commands::Sprite
- Compass::Commands::SpriteOptionsParser
- Compass::Commands::StampPattern
- Compass::Commands::StampPatternOptionsParser
- Compass::Commands::StatsOptionsParser
- Compass::Commands::StructureOptionsParser
- Compass::Commands::UnpackExtension
- Compass::Commands::UpdateProject
- Compass::Commands::ValidateProject
- Compass::Commands::ValidationOptionsParser
- Compass::Commands::VersionOptionsParser
- Compass::Commands::WatchProject
- Compass::Commands::WatchProjectOptionsParser
- Compass::Commands::WriteConfiguration
- Compass::Compiler
- Compass::Configuration
- Compass::Configuration::Adapters
- Compass::Configuration::Comments
- Compass::Configuration::Data
- Compass::Configuration::Defaults
- Compass::Configuration::FileData
- Compass::Configuration::Helpers
- Compass::Configuration::Inheritance
- Compass::Configuration::Inheritance::ClassMethods
- Compass::Configuration::Inheritance::ClassMethods::ArrayProxy
- Compass::Configuration::Inheritance::InstanceMethods
- Compass::Configuration::Paths
- Compass::Configuration::Serialization
- Compass::Error
- Compass::Exec
- Compass::Exec::CommandOptionParser
- Compass::Exec::GlobalOptionsParser
- Compass::Exec::Helpers
- Compass::Exec::ProjectOptionsParser
- Compass::Exec::SubCommandUI
- Compass::Exec::SwitchUI
- Compass::FilesystemConflict
- Compass::Frameworks
- Compass::Frameworks::Framework
- Compass::GridBuilder
- Compass::Installers
- Compass::Installers::BareInstaller
- Compass::Installers::Base
- Compass::Installers::Manifest
- Compass::Installers::Manifest::Entry
- Compass::Installers::ManifestInstaller
- Compass::Installers::TemplateContext
- Compass::Logger
- Compass::MissingDependency
- Compass::NullLogger
- Compass::PNG
- Compass::SassExtensions
- Compass::SassExtensions::Functions
- Compass::SassExtensions::Functions::Colors
- Compass::SassExtensions::Functions::Constants
- Compass::SassExtensions::Functions::CrossBrowserSupport
- Compass::SassExtensions::Functions::CrossBrowserSupport::CSS2FallbackValue
- Compass::SassExtensions::Functions::Display
- Compass::SassExtensions::Functions::Enumerate
- Compass::SassExtensions::Functions::Env
- Compass::SassExtensions::Functions::FontFiles
- Compass::SassExtensions::Functions::GradientSupport
- Compass::SassExtensions::Functions::GradientSupport::Assertions
- Compass::SassExtensions::Functions::GradientSupport::ColorStop
- Compass::SassExtensions::Functions::GradientSupport::Functions
- Compass::SassExtensions::Functions::GradientSupport::Gradient
- Compass::SassExtensions::Functions::GradientSupport::Gradient::ClassMethods
- Compass::SassExtensions::Functions::GradientSupport::LinearGradient
- Compass::SassExtensions::Functions::GradientSupport::RadialGradient
- Compass::SassExtensions::Functions::ImageSize
- Compass::SassExtensions::Functions::ImageSize::ImageProperties
- Compass::SassExtensions::Functions::ImageSize::JPEG
- Compass::SassExtensions::Functions::InlineImage
- Compass::SassExtensions::Functions::Lists
- Compass::SassExtensions::Functions::Math
- Compass::SassExtensions::Functions::Selectors
- Compass::SassExtensions::Functions::Sprites
- Compass::SassExtensions::Functions::Sprites::VariableReader
- Compass::SassExtensions::Functions::Urls
- Compass::SassExtensions::Functions::Urls::FontUrl
- Compass::SassExtensions::Functions::Urls::GeneratedImageUrl
- Compass::SassExtensions::Functions::Urls::ImageUrl
- Compass::SassExtensions::Functions::Urls::StylesheetUrl
- Compass::SassExtensions::Sprites
- Compass::SassExtensions::Sprites::ChunkyPngEngine
- Compass::SassExtensions::Sprites::Engine
- Compass::SassExtensions::Sprites::Image
- Compass::SassExtensions::Sprites::ImageMethods
- Compass::SassExtensions::Sprites::ImageRow
- Compass::SassExtensions::Sprites::LayoutMethods
- Compass::SassExtensions::Sprites::RowFitter
- Compass::SassExtensions::Sprites::SpriteMap
- Compass::SassExtensions::Sprites::SpriteMethods
- Compass::SpriteException
- Compass::SpriteImporter
- Compass::Sprites
- Compass::Sprites::Binding
- Compass::Stats
- Compass::Stats::CssFile
- Compass::Stats::SassFile
- Compass::Stats::StatsVisitor
- Compass::TestCase
- Compass::Util
- Compass::Version
- Sass
- Sass::Script
- Sass::Script::CrossBrowserFunctionCall
- Sass::Script::Funcall
- Sass::Script::Functions
- Sass::Script::Functions::EvaluationContext
- Sass::Script::HasSimpleCrossBrowserFunctionSupport
- Sass::Script::List
- Sass::Tree
- Sass::Tree::Node
- QuickCache

No matching classes.

# Compass::AppIntegration::StandAlone::Installer

### Public Instance Methods

compilation_required?() click to toggle source

    # File lib/compass/app_integration/stand_alone/installer.rb, line 77
    def compilation_required?
      @manifest.compile?
    end

completed_configuration() click to toggle source

    # File lib/compass/app_integration/stand_alone/installer.rb, line 38
    def completed_configuration
      nil
    end

config_contents() click to toggle source

    # File lib/compass/app_integration/stand_alone/installer.rb, line 27
    def config_contents
      project_path, Compass.configuration.project_path = Compass.configuration.project_path, nil
      Compass.configuration.serialize
    ensure
      Compass.configuration.project_path = project_path
    end

config_files_exist?() click to toggle source

    # File lib/compass/app_integration/stand_alone/installer.rb, line 23
    def config_files_exist?
      File.exists? targetize('config.rb')
    end

finalize(options = {}) click to toggle source

    # File lib/compass/app_integration/stand_alone/installer.rb, line 42
    def finalize(options = {})
      if options[:create] && !manifest.welcome_message_options[:replace]
        puts *********************************************************************Congratulations! Your compass project has been created.You may now add and edit sass stylesheets in the #{Compass.configuration.sass_dir} subdirectory of your project.Sass files beginning with an underscore are called partials and won't becompiled to CSS, but they can be imported into other sass stylesheets.You can configure your project by editing the config.rb configuration file.You must compile your sass stylesheets into CSS when they change.This can be done in one of the following ways:  1. To compile on demand:     compass compile [path/to/project]  2. To monitor your project for changes and automatically recompile:     compass watch [path/to/project]More Resources:  * Website: http://compass-style.org/  * Sass: http://sass-lang.com  * Community: http://groups.google.com/group/compass-users/
      end
      puts manifest.welcome_message if manifest.welcome_message
      if manifest.has_stylesheet? && !manifest.welcome_message_options[:replace]
        puts "\nTo import your new stylesheets add the following lines of HTML (or equivalent) to your webpage:"
        puts stylesheet_links
      end
    end

init() click to toggle source

    # File lib/compass/app_integration/stand_alone/installer.rb, line 13
    def init
      directory targetize("")
      super
    end

prepare() click to toggle source

    # File lib/compass/app_integration/stand_alone/installer.rb, line 34
    def prepare
      write_configuration_files unless config_files_exist? || !@manifest.generate_config?
    end

write_configuration_files(config_file = nil) click to toggle source

    # File lib/compass/app_integration/stand_alone/installer.rb, line 18
    def write_configuration_files(config_file = nil)
      config_file ||= targetize('config.rb')
      write_file config_file, config_contents
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.