Method: CommandMapper::Command#spawn_command

Defined in:
lib/command_mapper/command.rb

#spawn_commandInteger

Spawns the command as a separate process, returning the PID of the process.

Returns:

  • (Integer)

    The PID of the new command process.

Raises:

  • (Errno::ENOENT)

    The command could not be found.

Since:

  • 0.2.0

[View source]

754
755
756
# File 'lib/command_mapper/command.rb', line 754

def spawn_command
  Process.spawn(@command_env,*command_argv)
end