Sha256: aeb6a9367ea20510f86e93101a8eb69af46f67a40bd384dbc4bad9f0e7ca6d1d

Contents?: true

Size: 271 Bytes

Versions: 5

Compression:

Stored size: 271 Bytes

Contents

require 'whiskey_disk/config/abstract_filter'

class WhiskeyDisk
  class Config
    class DefaultDomainFilter < AbstractFilter
      def filter(data)
        data.has_key?('domain') ? data : data.merge('domain' => [ { 'name' => 'local' } ] )
      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_domain_filter.rb
ol-whisk_deploy-0.6.26 lib/whiskey_disk/config/filters/default_domain_filter.rb
whisk_deploy-0.6.26 lib/whiskey_disk/config/filters/default_domain_filter.rb
whiskey_disk-0.6.24 lib/whiskey_disk/config/filters/default_domain_filter.rb
whiskey_disk-0.6.23 lib/whiskey_disk/config/filters/default_domain_filter.rb