Method: Foreman::Process#expanded_command
- Defined in:
- lib/foreman/process.rb
#expanded_command(custom_env = {}) ⇒ String
Get environment-expanded command for a Process
30 31 32 33 34 35 36 37 |
# File 'lib/foreman/process.rb', line 30 def (custom_env={}) env = @options[:env].merge(custom_env) = command.dup env.each do |key, val| .gsub!("$#{key}", val) end end |