Class: TechnoGate::Contao::StylesheetCompiler

Inherits:
Compiler
  • Object
show all
Defined in:
lib/contao/stylesheet_compiler.rb

Instance Attribute Summary

Attributes inherited from Compiler

#options

Instance Method Summary collapse

Methods inherited from Compiler

clean, compile, #compile

Constructor Details

#initialize(options = {}) ⇒ StylesheetCompiler

Returns a new instance of StylesheetCompiler.



9
10
11
# File 'lib/contao/stylesheet_compiler.rb', line 9

def initialize(options = {})
  super
end

Instance Method Details

#cleanObject



13
14
15
16
17
18
19
20
21
22
# File 'lib/contao/stylesheet_compiler.rb', line 13

def clean
  @cleaner ||= Compass::Commands::CleanProject.new(
    Contao.root,
    configuration_file: Contao.root.join('config', 'compass.rb')
  )

  @cleaner.execute

  super
end