# File lib/rhc/rest/application.rb, line 177 def find_environment_variables(env_var_names=nil) return environment_variables if env_var_names.nil? env_var_names = [env_var_names].flatten debug "Finding environment variable(s) #{env_var_names.inspect} in app #{@name}" env_vars = environment_variables.select { |item| env_var_names.include? item.name } raise RHC::EnvironmentVariableNotFoundException.new("Environment variable(s) #{env_var_names.join(', ')} can't be found in application #{name}.") if env_vars.empty? env_vars end