文件操作 - pip2.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/package/pip2.rb
编辑文件内容
# frozen_string_literal: true # Puppet package provider for Python's `pip2` package management frontend. # <http://pip.pypa.io/> Puppet::Type.type(:package).provide :pip2, :parent => :pip do desc "Python packages via `pip2`. This provider supports the `install_options` attribute, which allows command-line flags to be passed to pip2. These options should be specified as an array where each element is either a string or a hash." has_feature :installable, :uninstallable, :upgradeable, :versionable, :install_options, :targetable def self.cmd ["pip2"] end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件