3
require 'foreman/procfile'
7
value = %x{ #{command} 2>&1 }.strip
8
value.empty? ? nil : value
11
def run_with_wrap_bundle(commands)
12
run(wrap_bundle(commands))
15
def wrap_bundle(commands)
17
'unset BUNDLE_GEMFILE RUBYOPT GEM_HOME',
18
hash_to_shell_args(dotenv_args).map{ |args| "export #{args}" },
23
def shell_quote(value)
24
Shellwords.escape(value)
27
def hash_to_shell_args(hash)
28
hash.map { |key, value| "#{key}=#{value}" }
32
::File.exists?(dotenv_path) ? Dotenv::Environment.new(dotenv_path) : {}
36
"#{node[:rack][:root]}/shared/.env"
b'\\ No newline at end of file'