Class: Locomotive::Mounter::Writer::FileSystem::Runner
- Defined in:
- lib/locomotive/mounter/writer/file_system.rb
Instance Attribute Summary collapse
-
#target_path ⇒ Object
Returns the value of attribute target_path.
Attributes inherited from Runner
#kind, #mounting_point, #parameters
Instance Method Summary collapse
-
#prepare ⇒ Object
Check the existence of the target_path parameter.
-
#writers ⇒ Array
List of all the writers.
Methods inherited from Runner
#force?, #initialize, #run!, #write_all
Constructor Details
This class inherits a constructor from Locomotive::Mounter::Writer::Runner
Instance Attribute Details
#target_path ⇒ Object
Returns the value of attribute target_path.
17 18 19 |
# File 'lib/locomotive/mounter/writer/file_system.rb', line 17 def target_path @target_path end |
Instance Method Details
#prepare ⇒ Object
Check the existence of the target_path parameter
21 22 23 24 25 26 27 |
# File 'lib/locomotive/mounter/writer/file_system.rb', line 21 def prepare self.target_path = parameters[:target_path] if self.target_path.blank? raise Locomotive::Mounter::WriterException.new('target_path is required') end end |
#writers ⇒ Array
List of all the writers
33 34 35 36 |
# File 'lib/locomotive/mounter/writer/file_system.rb', line 33 def writers [SiteWriter, SnippetsWriter, ContentTypesWriter, ContentEntriesWriter, PagesWriter, ThemeAssetsWriter, ContentAssetsWriter, TranslationsWriter] # [SiteWriter, PagesWriter, SnippetsWriter, ContentTypesWriter, ContentEntriesWriter, ContentAssetsWriter, ThemeAssetsWriter, TranslationsWriter] end |