Class: WhiskeyDisk::Config::SelectProjectAndEnvironmentFilter
- Inherits:
-
AbstractFilter
- Object
- AbstractFilter
- WhiskeyDisk::Config::SelectProjectAndEnvironmentFilter
- Defined in:
- lib/whiskey_disk/config/filters/select_project_and_environment_filter.rb
Instance Attribute Summary
Attributes inherited from AbstractFilter
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/select_project_and_environment_filter.rb', line 6 def filter(data) raise "No configuration file defined data for project `#{project_name}`, environment `#{environment_name}`" unless data and data[project_name] and data[project_name][environment_name] data[project_name][environment_name] end |