Method: HttpdConfigmapGenerator::Base::ConfigHelper#config_file_backup
- Defined in:
- lib/httpd_configmap_generator/base/config_helper.rb
#config_file_backup(path) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/httpd_configmap_generator/base/config_helper.rb', line 7 def config_file_backup(path) if File.exist?(path) = Time.current.strftime(TIMESTAMP_FORMAT) FileUtils.copy(path, "#{path}.#{}") end end |