Sha256: 92081460f2fe3645940dca343ab8cecdaa8a4e9213791f3568d3dd89bd5e8f2b
Contents?: true
Size: 793 Bytes
Versions: 3
Compression:
Stored size: 793 Bytes
Contents
module Outliers module Verifications module Shared def none_exist? logger.debug 'Verifying no resources exist.' logger.debug "Found #{all.empty? ? 'no resources' : all_by_key.join(',')}." all.empty? end def equals?(args) list = Array(args[:keys]) logger.debug "Verifying '#{list.join(',')}' equals #{all.empty? ? 'no resources' : all_by_key.join(',')}." list == all_by_key end module_function def verifications [ { name: 'none_exist', description: 'Verify no resources exist.' }, { name: 'equals', description: 'Verify resources match the given list of keys.', args: 'keys: [KEY1,KEY2]' } ] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
outliers-0.1.1 | lib/outliers/verifications/shared.rb |
outliers-0.1.0 | lib/outliers/verifications/shared.rb |
outliers-0.0.1 | lib/outliers/verifications/shared.rb |