Sha256: 306c6b6c67df801824abdd8c4ae0578f616f2589bc54bbd8e6c6bf8ae53eab42
Contents?: true
Size: 954 Bytes
Versions: 9
Compression:
Stored size: 954 Bytes
Contents
# frozen_string_literal: true # Specify the SSL client certificate 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_cert) do has_weight 320 order_within_weight 40 def parse(parser, options) OctocatalogDiff::Cli::Options.option_globally_or_per_branch( parser: parser, options: options, cli_name: 'puppet-master-ssl-client-cert', option_name: 'puppet_master_ssl_client_cert', desc: 'Full path to certificate file for SSL client auth to Puppet Master', validator: ->(x) { File.file?(x) || raise(Errno::ENOENT, "Suggested certificate #{x} does not exist") }, translator: ->(x) { File.read(x) } ) end end
Version data entries
9 entries across 9 versions & 1 rubygems