def upgrade_config_file
      puts "Old config file found, upgrading..."
      
      credentials = File.read(config_file_path).split("\n")
      config = {}
      config['api_key'] = credentials[0]
      config['password'] = credentials[1]
      config['url'] = credentials[2]

      config['secret'] = prompt "Please enter your API Shared Secret"

      write_config config

      puts 'Upgraded old config file to new format'

      config
    end
def upgrade_config_file
      puts "Old config file found, upgrading..."
      
      credentials = File.read(config_file_path).split("\n")
      config = {}
      config['api_key'] = credentials[0]
      config['password'] = credentials[1]
      config['url'] = credentials[2]

      config['secret'] = prompt "Please enter your API Shared Secret"

      write_config config

      puts 'Upgraded old config file to new format'

      config
    end
Old line-based config file format