Class: ServiceSkeleton::ConfigVariable::YamlFile
- Inherits:
-
ServiceSkeleton::ConfigVariable
- Object
- ServiceSkeleton::ConfigVariable
- ServiceSkeleton::ConfigVariable::YamlFile
- Defined in:
- lib/service_skeleton/config_variable/yaml_file.rb
Instance Attribute Summary
Attributes inherited from ServiceSkeleton::ConfigVariable
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
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/service_skeleton/config_variable/yaml_file.rb', line 8 def redact!(env) if env.has_key?(@name.to_s) if File.world_readable?(env[@name.to_s]) raise ServiceSkeleton::Error::InvalidEnvironmentError, "Sensitive file #{env[@name.to_s]} is world-readable!" end super end end |