Class: MusicMaster::Formats::Test

Inherits:
Object
  • Object
show all
Defined in:
lib/MusicMaster/Formats/Test.rb

Instance Method Summary collapse

Instance Method Details

#deliver(iSrcFileName, iDstFileName, iFormatConf, iMetadata) ⇒ Object

Deliver a file. The delivered file can be a shortcut to the source one.

Parameters
  • iSrcFileName (String): The source file to deliver from

  • iDstFileName (String): The destination file to be delivered

  • iFormatConf (map<Symbol,Object>): The format configuration

  • iMetadata (map<Symbol,Object>): The metadata that can be used while delivering the file



28
29
30
31
32
33
34
35
36
37
38
# File 'lib/MusicMaster/Formats/Test.rb', line 28

def deliver(iSrcFileName, iDstFileName, iFormatConf, )
  log_debug "Deliver for test purposes file #{iDstFileName}"
  File.open(iDstFileName, 'w') do |oFile|
    oFile.write({
      :SrcFileName => iSrcFileName,
      :DstFileName => iDstFileName,
      :FormatConf => iFormatConf,
      :Metadata => 
    }.inspect)
  end
end

#getFileExtObject

Give the file extension

Return
  • String: The file extension (without .)



16
17
18
# File 'lib/MusicMaster/Formats/Test.rb', line 16

def getFileExt
  return 'test.rb'
end