Method: Bolt::Transport::LXD::Connection#add_env_vars
- Defined in:
- lib/bolt/transport/lxd/connection.rb
#add_env_vars(env_vars) ⇒ Object
52 53 54 55 56 57 |
# File 'lib/bolt/transport/lxd/connection.rb', line 52 def add_env_vars(env_vars) @env_vars = env_vars.each_with_object([]) do |env_var, acc| acc << "--env" acc << "#{env_var[0]}=#{Shellwords.shellescape(env_var[1])}" end end |