Module: Cloudkeeper::Entities::Convertables::Ova
- Defined in:
- lib/cloudkeeper/entities/convertables/ova.rb
Constant Summary collapse
- CONVERT_OUTPUT_FORMATS =
%i[raw qcow2 vdi ova].freeze
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/cloudkeeper/entities/convertables/ova.rb', line 7 def self.extended(base) raise Cloudkeeper::Errors::Convertables::ConvertabilityError, "#{base.inspect} cannot become OVA convertable" \ unless base.class.included_modules.include?(Cloudkeeper::Entities::Convertables::Convertable) super end |
Instance Method Details
#convert_output_formats ⇒ Object
14 15 16 |
# File 'lib/cloudkeeper/entities/convertables/ova.rb', line 14 def convert_output_formats CONVERT_OUTPUT_FORMATS end |
#to_vmdk ⇒ Object
18 19 20 21 |
# File 'lib/cloudkeeper/entities/convertables/ova.rb', line 18 def to_vmdk logger.debug "Converting file #{file.inspect} from #{format.inspect} to vmdk" image_file(extract_disk, :vmdk) end |