lib/environment_parser.rb
# Extract environment variables from a value
# The value is expected to be either a hash or a string with
# one or more key value pairs on the form
#   KEY=VALUE
Extract environment variables from a value
The value is expected to be either a hash or a string with
one or more key value pairs on the form
KEY=VALUE
Extract environment variables from a value The value is expected to be either a hash or a string with one or more key value pairs on the form KEY = VALUE
def extract_variables(variable)
      return [variable] if variable.is_a? Hash
      return extract_variables_from_string(variable) if variable.is_a? String
      []
    end
def extract_variables ( variable ) return [ variable ] if variable . is_a? Hash return extract_variables_from_string ( variable ) if variable . is_a? String [ ] end
Extract environment variables from a value
The value is expected to be either a hash or a string with
one or more key value pairs on the form
KEY=VALUE
Extract environment variables from a value The value is expected to be either a hash or a string with one or more key value pairs on the form KEY = VALUE
variable
<not_specific>