Class: Soca::Plugins::Compass

Inherits:
Soca::Plugin show all
Defined in:
lib/soca/plugins/compass.rb

Instance Attribute Summary

Attributes inherited from Soca::Plugin

#options, #pusher

Instance Method Summary collapse

Methods inherited from Soca::Plugin

#app_dir, #config, #initialize, #logger, name, plugins

Constructor Details

This class inherits a constructor from Soca::Plugin

Instance Method Details

#before_buildObject



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/soca/plugins/compass.rb', line 11

def before_build
  Soca.logger.info "compiling compass"

  unless Soca.debug
    options = {:logger => ::Compass::NullLogger.new}.merge(self.options)
  end

  compass = ::Compass::Compiler.new(app_dir, compass_from, compass_to, ::Compass.sass_engine_options.merge(options || {}))
  Soca.logger.debug "compass: #{compass.inspect}"
  compass.run
end