Class: VagrantPlugins::ScpSync::SshOptions
- Inherits:
-
Object
- Object
- VagrantPlugins::ScpSync::SshOptions
- Defined in:
- lib/vagrant-scp-sync/action/scp_sync.rb
Overview
Helper class for building SSH options
Class Method Summary collapse
Class Method Details
.build(ssh_info) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/vagrant-scp-sync/action/scp_sync.rb', line 9 def self.build(ssh_info) opts = %w[ -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR ] opts << "-o port=#{ssh_info[:port]}" opts << ssh_info[:private_key_path].map { |k| "-i '#{k}'" }.join(' ') opts end |