Class: Lotus::Assets::Precompiler Private

Inherits:
Object
  • Object
show all
Defined in:
lib/lotus/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) ⇒ Lotus::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


23
24
25
26
# File 'lib/lotus/assets/precompiler.rb', line 23

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


32
33
34
35
# File 'lib/lotus/assets/precompiler.rb', line 32

def run
  clear_public_directory
  precompile
end