class Cabal::CLI::SSH

Public Instance Methods

handle() click to toggle source
# File lib/cabal/cli/ssh.rb, line 28
def handle
  with_authentication(partake(:config)) do
    Cabal::SSH.connect(
      cluster: option(:cluster_name),
      ssh_signature: arg(:ssh_signature).first,
      client: partake(:client),
      identity_timeout: lifetime,
      kernel: kernel
    )
  end
end
lifetime() click to toggle source
# File lib/cabal/cli/ssh.rb, line 40
def lifetime
  return nil unless option(:lifetime)
  option(:lifetime).to_i * 60
end