class Awestruct::CLI::Manifest::InstallCompass
Public Class Methods
new(framework='compass', lib)
click to toggle source
# File lib/awestruct/cli/manifest.rb, line 252 def initialize(framework='compass', lib) @framework = framework @lib = lib end
Public Instance Methods
perform(dir)
click to toggle source
# File lib/awestruct/cli/manifest.rb, line 257 def perform(dir) ::Compass.configuration.sass_dir = 'stylesheets' ::Compass.configuration.css_dir = '_site/stylesheets' ::Compass.configuration.images_dir = 'images' cmd = ::Compass::Commands::CreateProject.new(dir, { :framework => @framework, :project_type => :stand_alone, :css_dir => '_site/stylesheets', :sass_dir => 'stylesheets', :images_dir => 'images', :fonts_dir => 'fonts', :javascripts_dir => 'javascripts', :bare => true }) cmd.perform end
unperform(dir)
click to toggle source
# File lib/awestruct/cli/manifest.rb, line 275 def unperform(dir) # nothing end