Class: Epuber::Compiler::FileTypes::ContainerXMLFile
- Inherits:
-
GeneratedFile
- Object
- AbstractFile
- GeneratedFile
- Epuber::Compiler::FileTypes::ContainerXMLFile
- Defined in:
- lib/epuber/compiler/file_types/container_xml_file.rb
Instance Attribute Summary
Attributes inherited from GeneratedFile
Attributes inherited from AbstractFile
#compilation_context, #destination_path, #final_destination_path, #group, #path_type, #pkg_destination_path, #properties
Instance Method Summary collapse
-
#initialize ⇒ ContainerXMLFile
constructor
A new instance of ContainerXMLFile.
- #process(compilation_context) ⇒ Object
Methods inherited from GeneratedFile
Methods inherited from AbstractFile
#==, file_copy!, write_to_file, write_to_file!, write_to_file?
Constructor Details
#initialize ⇒ ContainerXMLFile
Returns a new instance of ContainerXMLFile.
9 10 11 12 13 14 |
# File 'lib/epuber/compiler/file_types/container_xml_file.rb', line 9 def initialize super self.destination_path = 'META-INF/container.xml' self.path_type = :package end |
Instance Method Details
#process(compilation_context) ⇒ Object
18 19 20 21 |
# File 'lib/epuber/compiler/file_types/container_xml_file.rb', line 18 def process(compilation_context) gen = MetaInfGenerator.new(compilation_context) write_generate(gen.generate_container_xml) end |