Module: Rabbit::SystemRunner

Included in:
ImageManipulable::Dia, ImageManipulable::EPS, ImageManipulable::GIMP
Defined in:
lib/rabbit/utils.rb

Class Method Summary collapse

Class Method Details

.run(cmd, *args) ⇒ Object


355
356
357
358
359
360
361
362
# File 'lib/rabbit/utils.rb', line 355

def run(cmd, *args)
  begin
    system(cmd, *args)
  rescue SystemCallError
    yield($!) if block_given?
    false
  end
end