Class: Locomotive::Mounter::Reader::FileSystem::ContentAssetsReader

Inherits:
Base
  • Object
show all
Defined in:
lib/locomotive/mounter/reader/file_system/content_assets_reader.rb

Instance Attribute Summary

Attributes inherited from Base

#items, #runner

Instance Method Summary collapse

Methods inherited from Base

#initialize, #mounting_point

Constructor Details

This class inherits a constructor from Locomotive::Mounter::Reader::FileSystem::Base

Instance Method Details

#readArray

Build the list of contents assets

Returns:

  • (Array)

    The list of content assets



12
13
14
15
16
17
18
19
20
# File 'lib/locomotive/mounter/reader/file_system/content_assets_reader.rb', line 12

def read
  self.items = {} # prefer an array over a hash

  self.fetch_from_pages

  self.fetch_from_content_entries

  self.items
end