Class: Awestruct::CLI::Manifest::InstallCompass
- Inherits:
-
Object
- Object
- Awestruct::CLI::Manifest::InstallCompass
- Defined in:
- lib/awestruct/cli/manifest.rb
Instance Method Summary collapse
-
#initialize(framework = 'compass') ⇒ InstallCompass
constructor
A new instance of InstallCompass.
- #perform(dir) ⇒ Object
- #unperform(dir) ⇒ Object
Constructor Details
#initialize(framework = 'compass') ⇒ InstallCompass
Returns a new instance of InstallCompass.
181 182 183 |
# File 'lib/awestruct/cli/manifest.rb', line 181 def initialize(framework='compass') @framework = framework end |
Instance Method Details
#perform(dir) ⇒ Object
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 |
# File 'lib/awestruct/cli/manifest.rb', line 185 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', :javascripts_dir=>'javascripts', } ) cmd.perform end |
#unperform(dir) ⇒ Object
201 202 203 |
# File 'lib/awestruct/cli/manifest.rb', line 201 def unperform(dir) # nothing end |