Class: Dip::Command::ProgramRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/dip/command.rb

Class Method Summary collapse

Class Method Details

.call(cmdline, env: {}, **options) ⇒ Object


12
13
14
15
16
17
18
# File 'lib/dip/command.rb', line 12

def self.call(cmdline, env: {}, **options)
  if cmdline.is_a?(Array)
    ::Kernel.exec(env, cmdline[0], *cmdline[1..-1], **options)
  else
    ::Kernel.exec(env, cmdline, **options)
  end
end