Class Launchy::Detect::Runner
In: lib/launchy/detect/runner.rb
Parent: Object

Methods

Classes and Modules

Class Launchy::Detect::Runner::Forkable
Class Launchy::Detect::Runner::Jruby
Class Launchy::Detect::Runner::NotFoundError
Class Launchy::Detect::Runner::Windows

Public Class methods

Detect the current command runner

This will return an instance of the Runner to be used to do the application launching.

If a runner cannot be detected then raise Runner::NotFoundError

The runner rules are, in order:

1) If you are on windows, you use the Windows Runner no matter what 2) If you are using the jruby engine, use the Jruby Runner. Unless rule

   (1) took effect

3) Use Forkable (barring rules (1) and (2))

Public Instance methods

cut it down to just the shell commands that will be passed to exec or posix_spawn. The cmd argument is split according to shell rules and the args are not escaped because they whole set is passed to system as *args and in that case system shell escaping rules are not done.

[Validate]