Sha256: dee84c9a5d792b2a41cd44a114483e1810ef49a6df8b918cae6aff743158a197
Contents?: true
Size: 541 Bytes
Versions: 5
Compression:
Stored size: 541 Bytes
Contents
require 'whiskey_disk/config/abstract_filter' require 'whiskey_disk/config/filters/modules/scope_helper' class WhiskeyDisk class Config class EnvironmentScopeFilter < AbstractFilter include ScopeHelper # is this data hash a bottom-level data hash without an environment name? def needs_environment_scoping?(data) repository_depth(data) == 0 end def filter(data) return data unless needs_environment_scoping?(data) { environment_name => data } end end end end
Version data entries
5 entries across 5 versions & 3 rubygems