Sha256: 653fa3b4e5729f40b8a0010c36d6b13ec214f0536475fa9a24ce1cbf0a94f463
Contents?: true
Size: 748 Bytes
Versions: 15
Compression:
Stored size: 748 Bytes
Contents
module LicenseFinder module CLI module MakesDecisions def self.included(mod) mod.extend(ClassMethods) end module ClassMethods def auditable method_option :who, desc: "The person making this decision" method_option :why, desc: "The reason for making this decision" method_option :version, desc: 'The version that will be approved' end end private def txn @txn ||= { who: options[:who], why: options[:why], versions: options[:version] ? [options[:version]] : [], when: Time.now.getutc } end def modifying(&block) license_finder.modifying(&block) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems