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', lib) ⇒ InstallCompass



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

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

Instance Method Details

#perform(dir) ⇒ Object



258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
# File 'lib/awestruct/cli/manifest.rb', line 258

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) ⇒ Object



276
277
278
# File 'lib/awestruct/cli/manifest.rb', line 276

def unperform(dir)
  # nothing
end