Method: WhiskeyDisk::Config::SelectProjectAndEnvironmentFilter#filter
- Defined in:
- lib/whiskey_disk/config/filters/select_project_and_environment_filter.rb
#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 |