Class: Awestruct::Commands::Manifest::InstallCompass
- Inherits:
-
Object
- Object
- Awestruct::Commands::Manifest::InstallCompass
- Defined in:
- lib/awestruct/commands/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.
178 179 180 |
# File 'lib/awestruct/commands/manifest.rb', line 178 def initialize(framework='compass') @framework = framework end |
Instance Method Details
#perform(dir) ⇒ Object
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 |
# File 'lib/awestruct/commands/manifest.rb', line 182 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
198 199 200 |
# File 'lib/awestruct/commands/manifest.rb', line 198 def unperform(dir) # nothing end |