Class: Hanami::Assets::Precompiler Private

Inherits:
Object
  • Object
show all
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.

Since:

  • 0.1.0

Instance Method Summary collapse

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

Parameters:

Since:

  • 0.1.0



24
25
26
27
# File 'lib/hanami/assets/precompiler.rb', line 24

def initialize(configuration, duplicates)
  @configuration = configuration
  @duplicates    = duplicates
end

Instance Method Details

#runObject

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

Since:

  • 0.1.0



33
34
35
36
# File 'lib/hanami/assets/precompiler.rb', line 33

def run
  clear_assets_directory
  precompile
end