Sha256: a06a11e3c5d035e49a0017d59c13f87d9872efc8c084cb97fa286576fa369e15

Contents?: true

Size: 465 Bytes

Versions: 1

Compression:

Stored size: 465 Bytes

Contents

# frozen_string_literal: true

module VagrantPlugins
  module ScpSync
    # Helper class for building SSH options
    class SshOptions
      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
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-scp-sync-0.5.16 lib/vagrant-scp-sync/ssh_options.rb