Class: Awestruct::CLI::Manifest::InstallCompass

Inherits:
Object
  • Object
show all
Defined in:
lib/awestruct/cli/manifest.rb

Instance Method Summary collapse

Constructor Details

#initialize(framework = 'compass') ⇒ InstallCompass

Returns a new instance of InstallCompass.



231
232
233
# File 'lib/awestruct/cli/manifest.rb', line 231

def initialize(framework='compass')
  @framework = framework
end

Instance Method Details

#perform(dir) ⇒ Object



235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
# File 'lib/awestruct/cli/manifest.rb', line 235

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',
        } )
  cmd.perform
end

#unperform(dir) ⇒ Object



252
253
254
# File 'lib/awestruct/cli/manifest.rb', line 252

def unperform(dir)
  # nothing
end