class WhiskeyDisk::Config::EnvironmentScopeFilter
Public Instance Methods
filter(data)
click to toggle source
# File lib/whiskey_disk/config/filters/environment_scope_filter.rb, line 14 def filter(data) return data unless needs_environment_scoping?(data) { environment_name => data } end
needs_environment_scoping?(data)
click to toggle source
is this data hash a bottom-level data hash without an environment name?
# File lib/whiskey_disk/config/filters/environment_scope_filter.rb, line 10 def needs_environment_scoping?(data) repository_depth(data) == 0 end