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

Returns a new instance of InstallCompass.



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

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

Instance Method Details

#perform(dir) ⇒ Object



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

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



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

def unperform(dir)
  # nothing
end