Class: Hanami::Assets::Precompiler Private
- Inherits:
-
Object
- Object
- Hanami::Assets::Precompiler
- Defined in:
- lib/hanami/assets/precompiler.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Precompile all the assets, coming from all the applications and third party gems into the public directory of the project.
Instance Method Summary collapse
-
#initialize(configuration, duplicates) ⇒ Hanami::Assets::Precompiler
constructor
private
Return a new instance.
-
#run ⇒ Object
private
Start the process.
Constructor Details
#initialize(configuration, duplicates) ⇒ Hanami::Assets::Precompiler
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return a new instance
26 27 28 29 |
# File 'lib/hanami/assets/precompiler.rb', line 26 def initialize(configuration, duplicates) @configuration = configuration @duplicates = duplicates end |
Instance Method Details
#run ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Start the process
35 36 37 38 |
# File 'lib/hanami/assets/precompiler.rb', line 35 def run clear_assets_directory precompile end |