文件操作 - eyaml.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/hiera-eyaml-3.4.0/lib/hiera/backend/eyaml.rb
编辑文件内容
class Hiera module Backend module Eyaml VERSION = "3.4.0" DESCRIPTION = "Hiera-eyaml is a backend for Hiera which provides OpenSSL encryption/decryption for Hiera properties" class RecoverableError < StandardError end def self.subcommand= command @@subcommand = command end def self.subcommand @@subcommand end def self.default_encryption_scheme= new_encryption @@default_encryption_scheme = new_encryption end def self.default_encryption_scheme @@default_encryption_scheme ||= "PKCS7" @@default_encryption_scheme end def self.verbosity_level= new_verbosity_level @@debug_level = new_verbosity_level end def self.verbosity_level @@debug_level ||= 1 @@debug_level end def self.subcommands= commands @@subcommands = commands end def self.subcommands @@subcommands end end end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件