2009-04-03 08:06:23 +00:00
|
|
|
require 'fileutils'
|
|
|
|
require File.join(File.dirname(__FILE__), 'base')
|
|
|
|
require File.join(File.dirname(__FILE__), 'update_project')
|
|
|
|
|
|
|
|
module Compass
|
|
|
|
module Commands
|
|
|
|
class StampPattern < ProjectBase
|
|
|
|
|
2009-04-07 06:58:53 +00:00
|
|
|
include InstallerCommand
|
2009-04-03 08:06:23 +00:00
|
|
|
|
|
|
|
def initialize(working_path, options)
|
|
|
|
super(working_path, options)
|
|
|
|
end
|
2009-04-07 06:58:53 +00:00
|
|
|
|
2009-04-03 08:06:23 +00:00
|
|
|
# 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
|