Sha256: 2ad9bd209ddfc18be8f65116383bffe583937c4b007a4c7faa1e06afbc65d3f6
Contents?: true
Size: 765 Bytes
Versions: 11
Compression:
Stored size: 765 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 yield decisions.save!(config.decisions_file_path) end end end end
Version data entries
11 entries across 11 versions & 1 rubygems