Module: R2mp3::Tools::Loader::InstanceMethods

Included in:
R2mp3::Tools::Lame, Mplayer
Defined in:
lib/r2mp3/tools/loader.rb

Instance Method Summary collapse

Instance Method Details

#execute(message = nil) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/r2mp3/tools/loader.rb', line 15

def execute(message=nil)
  run_command = "#{@recipe} 2>&1"
  # puts "run command: #{run_command}"
  # puts message unless message.nil?
  @result = `#{run_command}`
  return parse(@result)
end

#initialize(recipe, options = {}) ⇒ Object



11
12
13
# File 'lib/r2mp3/tools/loader.rb', line 11

def initialize(recipe, options = {})
  @recipe = recipe
end