文件操作 - spec_helper_acceptance.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/vendor_modules/sshkeys_core/spec/spec_helper_acceptance.rb
编辑文件内容
require 'beaker-rspec' require 'beaker-puppet' require 'beaker/module_install_helper' require 'beaker/puppet_install_helper' require 'voxpupuli/acceptance/spec_helper_acceptance' def beaker_opts { debug: true, trace: true, expect_failures: true, acceptable_exit_codes: (0...256) } end def posix_agents agents.reject { |agent| agent['platform'].include?('windows') } end def osx_agents agents.select { |agent| agent['platform'].include?('osx') } end RSpec.configure do |c| c.before :suite do unless ENV['BEAKER_provision'] == 'no' hosts.each { |host| host[:type] = 'aio' } run_puppet_install_helper install_module_on(hosts) install_module_dependencies_on(hosts) end end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件