mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
feature: run specs on different port
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
parent
14eebb88e0
commit
483c12edc7
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@ if ENV['SSH_SPEC']
|
|||
c.host = ENV['TARGET_HOST']
|
||||
options[:password] = ENV['LOGIN_PASSWORD'] || ENV['password']
|
||||
options[:user] = ENV['LOGIN_USERNAME'] || ENV['user'] || Etc.getlogin
|
||||
options[:port] = ( ENV['LOGIN_PORT'] || 22 ).to_i
|
||||
|
||||
if !ENV['LOGIN_KEY'].nil?
|
||||
options[:keys] = [ENV['LOGIN_KEY']]
|
||||
|
|
Loading…
Reference in a new issue