Sha256: 1ca8eaf379c617f87c77566ad4f942c599b77cb4fc39ea6ea649a8acc064c837
Contents?: true
Size: 1.49 KB
Versions: 15
Compression:
Stored size: 1.49 KB
Contents
module Compass module Installers class StandAloneInstaller < Base def init directory targetize("") super end def write_configuration_files write_file targetize('config.rb'), 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
15 entries across 15 versions & 1 rubygems