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
24 25 26 27 |
# File 'lib/hanami/assets/precompiler.rb', line 24 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
33 34 35 36 |
# File 'lib/hanami/assets/precompiler.rb', line 33 def run clear_assets_directory precompile end |