Sha256: 68b9b5b9c9c4f005c2fac022e25f74f35eca52bdabfa6bd06c9e32e57977fca2
Contents?: true
Size: 511 Bytes
Versions: 4
Compression:
Stored size: 511 Bytes
Contents
#!/bin/env ruby require 'fileutils' local_config_file = File.join(Dir.pwd, 'hyde_admin.yml') old_filename = "hyde_admin_old_#{Time.now.strftime('%Y_%m_%d')}.yml" # Backup actual config file if File.exist?(local_config_file) FileUtils.mv(local_config_file, old_filename) end # Copy the default config file FileUtils.copy(File.join(File.expand_path(File.dirname(__FILE__)), 'hyde_admin.yml'), local_config_file) puts "#{local_config_file} copied, you can find your old config file here : #{old_filename} !"
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hyde_admin-0.0.13 | bin/hyde_admin_config |
hyde_admin-0.0.11 | bin/hyde_admin_config |
hyde_admin-0.0.10 | bin/hyde_admin_config |
hyde_admin-0.0.9 | bin/hyde_admin_config |