Class: Prow::AppBuilder::StyleCompiler

Inherits:
Object
  • Object
show all
Defined in:
lib/prow/app_builder/style_compiler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(paths = nil) ⇒ StyleCompiler

Returns a new instance of StyleCompiler.



6
7
8
# File 'lib/prow/app_builder/style_compiler.rb', line 6

def initialize(paths = nil)
  @paths = paths || Paths.new
end

Instance Attribute Details

#pathsObject (readonly)

Returns the value of attribute paths.



4
5
6
# File 'lib/prow/app_builder/style_compiler.rb', line 4

def paths
  @paths
end

Instance Method Details

#performObject



10
11
12
# File 'lib/prow/app_builder/style_compiler.rb', line 10

def perform
  `compass compile --sass-dir=#{paths.sass} --css-dir=#{paths.stylesheets}`
end