Class Foreman::Process
In: lib/foreman/process.rb
Parent: Object

Methods

cwd   exec   expanded_command   new   run  

Attributes

command  [R] 
env  [R] 

Public Class methods

Create a Process

@param [String] command The command to run @param [Hash] options

@option options [String] :cwd (./) Change to this working directory before executing the process @option options [Hash] :env ({}) Environment variables to set for this process

Public Instance methods

Returns the working directory for this Process

@returns [String]

Exec a Process

@param [Hash] options

@option options :env ({}) Environment variables to set for this execution

@return Does not return

Get environment-expanded command for a Process

@param [Hash] custom_env ({}) Environment variables to merge with defaults

@return [String] The expanded command

Run a Process

@param [Hash] options

@option options :env ({}) Environment variables to set for this execution @option options :output ($stdout) The output stream

@returns [Fixnum] pid The pid of the process

[Validate]