Method: Beaker::Options::Presets#calculate_env_vars
- Defined in:
- lib/beaker/options/presets.rb
#calculate_env_vars ⇒ OptionsHash
Generates an OptionsHash of the environment variables of interest to Beaker
102 103 104 105 106 107 108 109 |
# File 'lib/beaker/options/presets.rb', line 102 def calculate_env_vars found = Beaker::Options::OptionsHash.new found = found.merge(format_found_env_vars( collect_env_vars( ENVIRONMENT_SPEC ))) found[:answers] = select_env_by_regex('\\Aq_') found.delete_if {|key, value| value.nil? or value.empty? } found end |