Sha256: 0667738e3199f247eef70b2b940f97700133f4c99672926d292fbe442f69967e
Contents?: true
Size: 1.25 KB
Versions: 2
Compression:
Stored size: 1.25 KB
Contents
require 'fileutils' require File.join(File.dirname(__FILE__), 'base') require File.join(File.dirname(__FILE__), 'update_project') require File.join(Compass.lib_directory, 'compass', 'installers') module Compass module Commands class StampPattern < ProjectBase include Compass::Installers attr_accessor :installer def initialize(working_path, options) super(working_path, options) installer_args = [template_directory(options[:pattern]), project_directory, self.options] @installer = case options[:project_type] when :stand_alone StandAloneInstaller.new *installer_args when :rails RailsInstaller.new *installer_args else raise "Unknown project type: #{project_type}" end end # all commands must implement perform def perform installer.init installer.run(:skip_finalization => true) UpdateProject.new(working_path, options).perform if installer.compilation_required? installer.finalize(:create => is_project_creation?) end def is_project_creation? false end def template_directory(pattern) File.join(framework.templates_directory, pattern) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chriseppstein-compass-0.5.9 | lib/compass/commands/stamp_pattern.rb |
chriseppstein-compass-0.6.0 | lib/compass/commands/stamp_pattern.rb |