Class: KCommercial::Resources::IndexesGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/KCommercialPipeline/core/resource/bundle/indexes_generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(assets, root_path) ⇒ IndexesGenerator

Returns a new instance of IndexesGenerator.

Parameters:



15
16
17
18
# File 'lib/KCommercialPipeline/core/resource/bundle/indexes_generator.rb', line 15

def initialize(assets, root_path)
  @asset_objects = assets
  @root_path = root_path
end

Instance Attribute Details

#asset_objectsArray(Asset) (readonly)

Returns:



8
9
10
# File 'lib/KCommercialPipeline/core/resource/bundle/indexes_generator.rb', line 8

def asset_objects
  @asset_objects
end

#root_pathPathname (readonly)

Returns:



11
12
13
# File 'lib/KCommercialPipeline/core/resource/bundle/indexes_generator.rb', line 11

def root_path
  @root_path
end

Instance Method Details

#generate!Object



20
21
22
23
# File 'lib/KCommercialPipeline/core/resource/bundle/indexes_generator.rb', line 20

def generate!
  write_files
  write_indexes
end