Class: Confinement::Config::Compiler
- Inherits:
-
Object
- Object
- Confinement::Config::Compiler
- Defined in:
- lib/confinement.rb
Instance Attribute Summary collapse
-
#output_assets ⇒ Object
Returns the value of attribute output_assets.
-
#output_directory_index ⇒ Object
Returns the value of attribute output_directory_index.
-
#output_root ⇒ Object
Returns the value of attribute output_root.
Instance Method Summary collapse
- #default_output_root ⇒ Object
-
#initialize(root:) {|_self| ... } ⇒ Compiler
constructor
A new instance of Compiler.
- #output_assets_path ⇒ Object
- #output_root_path ⇒ Object
Constructor Details
Instance Attribute Details
#output_assets ⇒ Object
Returns the value of attribute output_assets.
190 191 192 |
# File 'lib/confinement.rb', line 190 def output_assets @output_assets end |
#output_directory_index ⇒ Object
Returns the value of attribute output_directory_index.
191 192 193 |
# File 'lib/confinement.rb', line 191 def output_directory_index @output_directory_index end |
#output_root ⇒ Object
Returns the value of attribute output_root.
189 190 191 |
# File 'lib/confinement.rb', line 189 def output_root @output_root end |
Instance Method Details
#default_output_root ⇒ Object
201 202 203 |
# File 'lib/confinement.rb', line 201 def default_output_root "tmp/build-#{Confinement.env}" end |
#output_assets_path ⇒ Object
197 198 199 |
# File 'lib/confinement.rb', line 197 def output_assets_path @root.concat(output_root, output_assets).cleanpath. end |
#output_root_path ⇒ Object
193 194 195 |
# File 'lib/confinement.rb', line 193 def output_root_path @root.concat(output_root).cleanpath. end |