From 997f7d4ef4b98ca865432d7535bfa7d909b0b4d5 Mon Sep 17 00:00:00 2001 From: Peter Souter Date: Sat, 31 Jan 2015 14:34:02 +0000 Subject: [PATCH] Change default user to 'root' Closes #131 --- lib/tugboat/config.rb | 2 +- spec/cli/authorize_cli_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tugboat/config.rb b/lib/tugboat/config.rb index a28994f..e0d0bb4 100644 --- a/lib/tugboat/config.rb +++ b/lib/tugboat/config.rb @@ -99,7 +99,7 @@ def create_config_file(client, api, ssh_key_path, ssh_user, ssh_port, region, im end if ssh_user.empty? - ssh_user = ENV['USER'] + ssh_user = 'root' end if ssh_port.empty? diff --git a/spec/cli/authorize_cli_spec.rb b/spec/cli/authorize_cli_spec.rb index 63a143a..29b1c32 100644 --- a/spec/cli/authorize_cli_spec.rb +++ b/spec/cli/authorize_cli_spec.rb @@ -99,7 +99,7 @@ expect(config["defaults"]["image"]).to eq "9801950" expect(config["defaults"]["region"]).to eq "8" expect(config["defaults"]["size"]).to eq "66" - expect(config["ssh"]["ssh_user"]).to eq ENV["USER"] + expect(config["ssh"]["ssh_user"]).to eq 'root' expect(config["ssh"]["ssh_key_path"]).to eq "~/.ssh/id_rsa2" expect(config["ssh"]["ssh_port"]).to eq "22" expect(config["defaults"]["ssh_key"]).to eq ""