Method: Chef::Knife::Configure#ask_user_for_config_path
- Defined in:
- lib/chef/knife/configure.rb
#ask_user_for_config_path ⇒ Object
106 107 108 109 110 111 112 113 |
# File 'lib/chef/knife/configure.rb', line 106 def ask_user_for_config_path config[:config_file] ||= ask_question("Where should I put the config file? ", :default => '~/.chef/knife.rb') # have to use expand path to expand the tilde character to the user's home config[:config_file] = File.(config[:config_file]) if File.exists?(config[:config_file]) confirm("Overwrite #{config[:config_file]}") end end |