lib/convox_installer/config.rb in convox_installer-1.0.7 vs lib/convox_installer/config.rb in convox_installer-1.0.8

- old
+ new

@@ -5,11 +5,11 @@ require "json" require "securerandom" module ConvoxInstaller class Config - CONFIG_FILE = File.expand_path("./.installer_config").freeze + CONFIG_FILE = File.expand_path("./.installer_config.json").freeze attr_accessor :logger, :config, :prompts, :highline DEFAULT_PROMPTS = [ { @@ -168,11 +168,11 @@ end end def save_config_to_file # FileUtils.mkdir_p File.expand_path("~/.convox") - File.open(CONFIG_FILE, "w") do |f| - f.puts({ config: config }.to_json) + File.open(CONFIG_FILE, 'w') do |f| + f.puts(JSON.pretty_generate(config: config)) end end def self.config_file_exists? File.exist?(CONFIG_FILE)