lib/kontena/cli/server/server.rb in kontena-cli-0.0.2 vs lib/kontena/cli/server/server.rb in kontena-cli-0.5.0

- old
+ new

@@ -7,12 +7,12 @@ def connect(api_url = nil, options) until !api_url.nil? && !api_url.empty? api_url = ask('Kontena server url: ') end - inifile['server']['url'] = api_url - inifile.save(filename: ini_filename) + settings['server']['url'] = api_url + save_settings sleep 0.1 if client.get('ping') # test server connection display_logo else @@ -20,11 +20,11 @@ end end def disconnect - inifile['server'].delete('url') - inifile.save(filename: ini_filename) + settings['server'].delete('url') + save_settings end private def display_logo logo = <<LOGO