Module: HttpdConfigmapGenerator::Base::ConfigHelper
- Included in:
- HttpdConfigmapGenerator::Base
- Defined in:
- lib/httpd_configmap_generator/base/config_helper.rb
Instance Method Summary collapse
Instance Method Details
#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 |