文件操作 - vendor.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/3.2.0/rubygems/source/vendor.rb
编辑文件内容
# frozen_string_literal: true ## # This represents a vendored source that is similar to an installed gem. class Gem::Source::Vendor < Gem::Source::Installed ## # Creates a new Vendor source for a gem that was unpacked at +path+. def initialize(path) @uri = path end def <=>(other) case other when Gem::Source::Lock then -1 when Gem::Source::Vendor then 0 when Gem::Source then 1 else nil end end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件