Sha256: e95f3b2e9c50ab2478a38bb7a07a477a688b81633cad9924f958d59512185093
Contents?: true
Size: 1.55 KB
Versions: 27
Compression:
Stored size: 1.55 KB
Contents
module Compass module Installers class StandAloneInstaller < Base def init directory targetize("") super end def write_configuration_files(config_file = nil) config_file ||= targetize('config.rb') write_file config_file, config_contents end def config_files_exist? File.exists? targetize('config.rb') end 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 def prepare write_configuration_files unless config_files_exist? end # We want to rely on the defaults provided by Configuration def configuration_defaults {} end def finalize(options = {}) if options[:create] puts <<-NEXTSTEPS Congratulations! Your compass project has been created. You must recompile your sass stylesheets when they change. This can be done in one of the following ways: 1. From within your project directory run: compass 2. From any directory run: compass -u path/to/project 3. To monitor your project for changes and automatically recompile: compass --watch [path/to/project] NEXTSTEPS end puts "\nTo import your new stylesheets add the following lines of HTML (or equivalent) to your webpage:" puts stylesheet_links end def compilation_required? true end end end end
Version data entries
27 entries across 27 versions & 4 rubygems