Method: CLI#init
- Defined in:
- lib/asker/cli.rb
#init ⇒ Object
Create default INI config file
55 56 57 58 59 60 61 62 63 64 |
# File 'lib/asker/cli.rb', line 55 def init src = File.join(File.dirname(__FILE__), 'files', 'config.ini') dst = File.join(Dir.pwd, 'config.ini') if File.exist? dst puts "[WARN] Exists file! => #{Rainbow(File.basename(dst)).yellow.bright}" else FileUtils.cp(src, dst) puts "[ OK ] Create file => #{Rainbow(File.basename(dst)).green}" end end |