Sha256: aa5e91909edea98be1f908dfe0a79724b9f6c1ef0d1a81f9fb615f4e88387d3b

Contents?: true

Size: 289 Bytes

Versions: 5

Compression:

Stored size: 289 Bytes

Contents

require 'whiskey_disk/config/abstract_filter'

class WhiskeyDisk
  class Config
    class DefaultConfigTargetFilter < AbstractFilter
      def filter(data)
        return data if data['config_target']
        data.merge( { 'config_target' => environment_name })
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
ol-whisk_deploy-0.6.25 lib/whiskey_disk/config/filters/default_config_target_filter.rb
ol-whisk_deploy-0.6.26 lib/whiskey_disk/config/filters/default_config_target_filter.rb
whisk_deploy-0.6.26 lib/whiskey_disk/config/filters/default_config_target_filter.rb
whiskey_disk-0.6.24 lib/whiskey_disk/config/filters/default_config_target_filter.rb
whiskey_disk-0.6.23 lib/whiskey_disk/config/filters/default_config_target_filter.rb