Sha256: 7278e8c2f75ce41914760bc07cd71add8483e6863d007b98ff6272cbf648e861
Contents?: true
Size: 625 Bytes
Versions: 1
Compression:
Stored size: 625 Bytes
Contents
require "license_acceptance/strategy/base" module LicenseAcceptance module Strategy # Used for library consumers to parse their own form of acceptance (knife config, omnibus config, etc.) and pass it in class ProvidedValue < Base attr_reader :value def initialize(value) @value = value end def accepted? String(value).downcase == ACCEPT end def silent? String(value).downcase == ACCEPT_SILENT end def no_persist? String(value).downcase == ACCEPT_NO_PERSIST end def value? !!value end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
license-acceptance-2.1.2 | lib/license_acceptance/strategy/provided_value.rb |