文件操作 - abstract_compiler.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/abstract_compiler.rb
编辑文件内容
# frozen_string_literal: true module Puppet::Parser::AbstractCompiler # Returns the catalog for a compilation. Must return a Puppet::Resource::Catalog or fail with an # error if the specific compiler does not support catalog operations. # def catalog raise Puppet::DevError("Class '#{self.class}' should have implemented 'catalog'") end # Returns the environment for the compilation # def environment raise Puppet::DevError("Class '#{self.class}' should have implemented 'environment'") end # Produces a new scope # This method is here if there are functions/logic that will call this for some other purpose than to create # a named scope for a class. It may not have to be here. (TODO) # def newscope(scope, options) raise Puppet::DevError("Class '#{self.class}' should have implemented 'newscope'") end # Returns a hash of all externally referenceable qualified variables # def qualified_variables raise Puppet::DevError("Class '#{self.class}' should have implemented 'qualified_variables'") end # Returns the top scope instance def topscope raise Puppet::DevError("Class '#{self.class}' should have implemented 'topscope'") end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件