文件操作 - ssl_context.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/ssl/ssl_context.rb
编辑文件内容
# frozen_string_literal: true require_relative '../../puppet/ssl' module Puppet::SSL # The `keyword_init: true` option is no longer needed in Ruby >= 3.2 SSLContext = Struct.new( :store, :cacerts, :crls, :private_key, :client_cert, :client_chain, :revocation, :verify_peer, keyword_init: true ) do def initialize(*) super self[:cacerts] ||= [] self[:crls] ||= [] self[:client_chain] ||= [] self[:revocation] = true if self[:revocation].nil? self[:verify_peer] = true if self[:verify_peer].nil? end end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件