Sha256: f3112c1730fcc7390d64ec59821147b7f758c5fdc4ef6355f5f77e2172009b1a
Contents?: true
Size: 728 Bytes
Versions: 4
Compression:
Stored size: 728 Bytes
Contents
# Specify the client certificate for connecting to PuppetDB. This must be specified along with # --puppetdb-ssl-client-key in order to work. # @param parser [OptionParser object] The OptionParser argument # @param options [Hash] Options hash being constructed; this is modified in this method. OctocatalogDiff::CatalogDiff::Cli::Options::Option.newoption(:puppetdb_ssl_client_cert) do has_weight 310 def parse(parser, options) parser.on('--puppetdb-ssl-client-cert FILENAME', 'SSL client certificate to connect to PuppetDB') do |x| raise Errno::ENOENT, "--puppetdb-ssl-client-cert #{x} does not point to a valid file" unless File.file?(x) options[:puppetdb_ssl_client_cert] = File.read(x) end end end
Version data entries
4 entries across 4 versions & 1 rubygems