class Nand::Launcher::ShellLauncher

Public Class Methods

launchable?(target, io, opts) click to toggle source
# File lib/nand/launcher/shell_launcher.rb, line 7
def self.launchable?(target, io, opts)
  require 'mkmf'
  raise "Not Executable #{target}" if find_executable0(target).nil?
  true
rescue => e
  io.puts "\t- " + e.message
  false
end
load(target, opts = {}, *argv) click to toggle source
# File lib/nand/launcher/shell_launcher.rb, line 15
def self.load(target, opts = {}, *argv)
  new(target, opts, *argv)
end

Public Instance Methods

cmd() click to toggle source
# File lib/nand/launcher/shell_launcher.rb, line 18
def cmd; "#{@progname} #{@argv.join(" ")}" end
launch() click to toggle source
# File lib/nand/launcher/shell_launcher.rb, line 19
def launch
  spawn("#{cmd}", :out => @exec_stdout, :err => @exec_stderr, :in => @exec_stdin, :pgroup => true)
end