Class: Bosh::Bootstrap::Cli::Commands::SSH

Inherits:
Object
  • Object
show all
Includes:
Helpers, FileUtils
Defined in:
lib/bosh-bootstrap/cli/commands/ssh.rb

Overview

Runs SSH to the microbosh server

Instance Method Summary collapse

Methods included from Helpers::Settings

#migrate_old_settings, #reload_settings!, #save_settings!, #setting, #settings, #settings_dir, #settings_dir=, #settings_path, #settings_ssh_dir

Methods included from Helpers::KeyPair

#setup_keypair

Methods included from Helpers::Interactions

#bold, #clear, #cyan, #green, #hl, #red, #yellow

Methods included from Helpers::Bundle

#bundle

Instance Method Details

#performObject



16
17
18
19
# File 'lib/bosh-bootstrap/cli/commands/ssh.rb', line 16

def perform
  setup_keypair
  sh "ssh -i #{private_key_path} #{user}@#{host}"
end