All Downloads are FREE. Search and download functionalities are using the official Maven repository.

awscala.ec2.SSHEnabledInstance.scala Maven / Gradle / Ivy

There is a newer version: 0.8.3
Show newest version
package awscala.ec2

import com.decodified.scalassh._
import java.io.File

case class SSHEnabledInstance(instance: Instance) extends {

  def ssh[T](f: SshClient => SSH.Result[T], keyPairFilePath: String): SSH.Result[T] = ssh(f, new File(keyPairFilePath))

  def ssh[T](f: SshClient => SSH.Result[T], keyPairFile: File): SSH.Result[T] = {
    instance.withKeyPair(keyPairFile)(_.ssh(f))
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy