Module: SwfConverter::Engine::Alphize::Runner

Included in:
SwfConverter::Engine::Alphize, Blender
Defined in:
lib/swf_converter/engine/alphize/runner.rb

Instance Method Summary collapse

Instance Method Details

#e(*args) ⇒ Object



5
6
7
# File 'lib/swf_converter/engine/alphize/runner.rb', line 5

def e(*args)
  Shellwords.escape(*args)
end

#run(description, command) ⇒ Object



9
10
11
12
13
# File 'lib/swf_converter/engine/alphize/runner.rb', line 9

def run(description, command)
  unless system(command)
    raise ConversionError, "Failed to #{description}: #{command.inspect}"
  end
end