Sha256: 7124f41ee999e62cf3e8ca84ec6a74d72ce7f8c5c2e16e289edc7759c9e28d7c
Contents?: true
Size: 902 Bytes
Versions: 11
Compression:
Stored size: 902 Bytes
Contents
# frozen_string_literal: true # Specify the SSL client key for Puppet Master. This makes it possible to authenticate with a # client certificate keypair to the Puppet Master. # @param parser [OptionParser object] The OptionParser argument # @param options [Hash] Options hash being constructed; this is modified in this method. OctocatalogDiff::Cli::Options::Option.newoption(:puppet_master_ssl_client_key) do has_weight 320 def parse(parser, options) OctocatalogDiff::Cli::Options.option_globally_or_per_branch( parser: parser, options: options, cli_name: 'puppet-master-ssl-client-key', option_name: 'puppet_master_ssl_client_key', desc: 'Full path to key file for SSL client auth to Puppet Master', validator: ->(x) { File.file?(x) || raise(Errno::ENOENT, "Suggested key #{x} does not exist") }, translator: ->(x) { File.read(x) } ) end end
Version data entries
11 entries across 11 versions & 1 rubygems