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.



183
184
185
# File 'lib/awestruct/cli/manifest.rb', line 183

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

Instance Method Details

#perform(dir) ⇒ Object



187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
# File 'lib/awestruct/cli/manifest.rb', line 187

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



204
205
206
# File 'lib/awestruct/cli/manifest.rb', line 204

def unperform(dir)
  # nothing
end