文件操作 - info_service.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/info_service.rb
编辑文件内容
# frozen_string_literal: true module Puppet::InfoService require_relative 'info_service/class_information_service' require_relative 'info_service/task_information_service' require_relative 'info_service/plan_information_service' def self.classes_per_environment(env_file_hash) Puppet::InfoService::ClassInformationService.new.classes_per_environment(env_file_hash) end def self.tasks_per_environment(environment_name) Puppet::InfoService::TaskInformationService.tasks_per_environment(environment_name) end def self.task_data(environment_name, module_name, task_name) Puppet::InfoService::TaskInformationService.task_data(environment_name, module_name, task_name) end def self.plans_per_environment(environment_name) Puppet::InfoService::PlanInformationService.plans_per_environment(environment_name) end def self.plan_data(environment_name, module_name, plan_name) Puppet::InfoService::PlanInformationService.plan_data(environment_name, module_name, plan_name) end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件