Module: Avm::EacAsciidoctorBase0::Sources::Document::Media
- Defined in:
- lib/avm/eac_asciidoctor_base0/sources/document/media.rb
Constant Summary collapse
- MEDIA_DIRECTORY_BASENAME =
'_media'
Instance Method Summary collapse
Instance Method Details
#copy_media_directory_to(target_directory_path) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/avm/eac_asciidoctor_base0/sources/document/media.rb', line 13 def copy_media_directory_to(target_directory_path) return unless media_directory.directory? target_directory_path.parent.mkpath ::FileUtils.copy_entry(media_directory, target_directory_path) end |
#media_directory ⇒ Pathname
21 22 23 |
# File 'lib/avm/eac_asciidoctor_base0/sources/document/media.rb', line 21 def media_directory root_path.join(MEDIA_DIRECTORY_BASENAME) end |