From b22afa6285e93d1924f0abf398a126bb2949b604 Mon Sep 17 00:00:00 2001 From: Jack Pearkes Date: Wed, 10 Jul 2013 14:49:15 +0200 Subject: [PATCH] cli/authorize: reload the configuration after we write the file fixes #41 --- lib/tugboat/middleware/ask_for_credentials.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tugboat/middleware/ask_for_credentials.rb b/lib/tugboat/middleware/ask_for_credentials.rb index 2d4cb11..12b80b7 100644 --- a/lib/tugboat/middleware/ask_for_credentials.rb +++ b/lib/tugboat/middleware/ask_for_credentials.rb @@ -13,6 +13,7 @@ def call(env) # Write the config file. env['config'].create_config_file(client_key, api_key, ssh_key_path, ssh_user, ssh_port) + env['config'].reload! @app.call(env) end