Class: WhiskeyDisk::Config::DefaultConfigTargetFilter

Inherits:
AbstractFilter
  • Object
show all
Defined in:
lib/whiskey_disk/config/filters/default_config_target_filter.rb

Instance Attribute Summary

Attributes inherited from AbstractFilter

#config

Instance Method Summary collapse

Methods inherited from AbstractFilter

#environment_name, #initialize, #project_name

Constructor Details

This class inherits a constructor from WhiskeyDisk::Config::AbstractFilter

Instance Method Details

#filter(data) ⇒ Object



6
7
8
9
# File 'lib/whiskey_disk/config/filters/default_config_target_filter.rb', line 6

def filter(data)
  return data if data['config_target']
  data.merge( { 'config_target' => environment_name })
end