Class: Prow::AppBuilder::StyleCompiler
- Inherits:
-
Object
- Object
- Prow::AppBuilder::StyleCompiler
- Defined in:
- lib/prow/app_builder/style_compiler.rb
Instance Attribute Summary collapse
-
#paths ⇒ Object
readonly
Returns the value of attribute paths.
Instance Method Summary collapse
-
#initialize(paths = nil) ⇒ StyleCompiler
constructor
A new instance of StyleCompiler.
- #perform ⇒ Object
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
#paths ⇒ Object (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
#perform ⇒ Object
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 |