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



23
24
25
26
27
28
29
30
31
32
33
# File 'lib/MusicMaster/Formats/Test.rb', line 23

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 .)



11
12
13
# File 'lib/MusicMaster/Formats/Test.rb', line 11

def getFileExt
  return 'test.rb'
end