# File lib/compass/frameworks.rb, line 12 def initialize(name, *arguments) options = arguments.last.is_a?(Hash) ? arguments.pop : {} self.path = path = options[:path] || arguments.shift @name = name @templates_directory = options[:templates_directory] || File.join(path, 'templates') @stylesheets_directory = options[:stylesheets_directory] || File.join(path, 'stylesheets') end
# File lib/compass/frameworks.rb, line 25 def manifest(pattern, options = {}) options[:pattern_name] ||= pattern Compass::Installers::Manifest.new(manifest_file(pattern), options) end
# File lib/compass/frameworks.rb, line 22 def manifest_file(pattern) File.join(templates_directory, pattern.to_s, "manifest.rb") end
# File lib/compass/frameworks.rb, line 19 def template_directories Dir.glob(File.join(templates_directory, "*")).map{|f| File.basename(f)} end