(rubocop) Fix Layout/EmptyLineAfterGuardClause

This commit is contained in:
Tim Sharpe 2019-02-03 12:46:15 +11:00
parent e6d1fbf954
commit e8f420a08c
2 changed files with 5 additions and 0 deletions

View file

@ -17,11 +17,13 @@ class Ssh
def self.ssh(verbose, host_os, token, url)
ssh_path = which('ssh')
raise 'Could not determine path to ssh' unless ssh_path
os_types = {}
os_types[host_os] = 1
response = Pooler.retrieve(verbose, os_types, token, url)
raise "Could not get vm from vmpooler:\n #{response}" unless response['ok']
user = host_os =~ /win/ ? 'Administrator' : 'root'
hostname = "#{response[host_os]['hostname']}.#{response['domain']}"