Parent

Class/Module Index [+]

Quicksearch

Compass::Installers::ManifestInstaller

Attributes

manifest[RW]

Public Class Methods

new(template_path, target_path, options = {}) click to toggle source
# File lib/compass/installers/manifest_installer.rb, line 8
def initialize(template_path, target_path, options = {})
  super
  @manifest = Manifest.new(manifest_file, options) if template_path
end

Public Instance Methods

init() click to toggle source

Initializes the project to work with compass

# File lib/compass/installers/manifest_installer.rb, line 18
def init
  dirs = manifest.map do |entry|
    unless entry.type == :directory
      loc = send("install_location_for_#{entry.type}", entry.to, entry.options)
      File.dirname(loc)
    end
  end.compact

  if manifest.has_stylesheet?
    dirs << sass_dir
    dirs << css_dir
  end

  dirs.uniq.sort.each do |dir|
    directory targetize(dir)
  end
end
install() click to toggle source

The default install method. Calls install_<type> methods in the order specified by the manifest.

# File lib/compass/installers/manifest_installer.rb, line 37
def install
  manifest.each do |entry|
    send("install_#{entry.type}", entry.from, entry.to, entry.options)
  end
end
manifest_file() click to toggle source
# File lib/compass/installers/manifest_installer.rb, line 13
def manifest_file
  @manifest_file ||= File.join(template_path, "manifest.rb")
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.