mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 13:28:42 -05:00
(rubocop) Fix Style/StringLiterals
This commit is contained in:
parent
cf2295ccfd
commit
1272343cdd
12 changed files with 181 additions and 181 deletions
|
|
@ -14,19 +14,19 @@ class Ssh
|
|||
end
|
||||
|
||||
def self.ssh(verbose, host_os, token, url)
|
||||
ssh_path = which("ssh")
|
||||
ssh_path = which('ssh')
|
||||
if !ssh_path
|
||||
raise "Could not determine path to ssh"
|
||||
raise 'Could not determine path to ssh'
|
||||
end
|
||||
os_types = {}
|
||||
os_types[host_os] = 1
|
||||
|
||||
response = Pooler.retrieve(verbose, os_types, token, url)
|
||||
if response["ok"] == true
|
||||
if response['ok'] == true
|
||||
if host_os =~ /win/
|
||||
user = "Administrator"
|
||||
user = 'Administrator'
|
||||
else
|
||||
user = "root"
|
||||
user = 'root'
|
||||
end
|
||||
|
||||
hostname = "#{response[host_os]["hostname"]}.#{response["domain"]}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue