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