Sha256: 1c44b982edd28f778b6aaf8f95b26053c18fe946ad39872411cbf12c47e57fb7
Contents?: true
Size: 754 Bytes
Versions: 7
Compression:
Stored size: 754 Bytes
Contents
# frozen_string_literal: true module Facter module DefaultOptions def augment_with_defaults! cli_defaults global_defaults end DEFAULT_LOG_LEVEL = :warn def augment_with_to_hash_defaults! @options[:show_legacy] = true end private def cli_defaults @options[:debug] ||= false @options[:trace] ||= false @options[:verbose] ||= false @options[:log_level] ||= DEFAULT_LOG_LEVEL @options[:show_legacy] ||= false end def global_defaults @options[:block] ||= true @options[:custom_facts] ||= true @options[:custom_dir] ||= [] @options[:external_facts] ||= true @options[:external_dir] ||= [] @options[:ruby] ||= true end end end
Version data entries
7 entries across 7 versions & 1 rubygems