Class: ServiceSkeleton::ConfigVariable::KVList

Inherits:
ServiceSkeleton::ConfigVariable show all
Defined in:
lib/service_skeleton/config_variable/kv_list.rb

Instance Attribute Summary

Attributes inherited from ServiceSkeleton::ConfigVariable

#name, #value

Instance Method Summary collapse

Methods inherited from ServiceSkeleton::ConfigVariable

#initialize, #method_name, #redact?

Constructor Details

This class inherits a constructor from ServiceSkeleton::ConfigVariable

Instance Method Details

#redact!(env) ⇒ Object



6
7
8
# File 'lib/service_skeleton/config_variable/kv_list.rb', line 6

def redact!(env)
  env.keys.each { |k| env[k] = "*SENSITIVE*" if k =~ @opts[:key_pattern] }
end