Class: Locomotive::Mounter::Reader::FileSystem::Runner
- Defined in:
- lib/locomotive/mounter/reader/file_system.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Attributes inherited from Runner
#kind, #mounting_point, #parameters
Instance Method Summary collapse
-
#prepare ⇒ Object
Compass is required.
-
#readers ⇒ Array
Ordered list of atomic readers.
Methods inherited from Runner
Constructor Details
This class inherits a constructor from Locomotive::Mounter::Reader::Runner
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
16 17 18 |
# File 'lib/locomotive/mounter/reader/file_system.rb', line 16 def path @path end |
Instance Method Details
#prepare ⇒ Object
Compass is required
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/locomotive/mounter/reader/file_system.rb', line 19 def prepare self.path = parameters.delete(:path) if self.path.blank? || !File.exists?(self.path) raise Locomotive::Mounter::ReaderException.new('path is required and must exist') end # TODO: Steam should deal with that Locomotive::Mounter::Extensions::Compass.configure(self.path) end |
#readers ⇒ Array
Ordered list of atomic readers
34 35 36 |
# File 'lib/locomotive/mounter/reader/file_system.rb', line 34 def readers [SiteReader, ContentTypesReader, PagesReader, SnippetsReader, ContentEntriesReader, ContentAssetsReader, ThemeAssetsReader, TranslationsReader] end |