Sha256: 2e20fcb088612c3cf7520b761e5ab37fdccd2b248f83d0bc84ad11172fa1798c

Contents?: true

Size: 616 Bytes

Versions: 28

Compression:

Stored size: 616 Bytes

Contents

# Copyright (c) 2012-2013 Stark & Wayne, LLC

module Bosh; module Bootstrap; module Cli; module Commands; end; end; end; end

require "bosh-bootstrap/cli/helpers"

# for the #sh helper
require "rake"
require "rake/file_utils"

# Runs SSH to the microbosh server
class Bosh::Bootstrap::Cli::Commands::SSH
  include Bosh::Bootstrap::Cli::Helpers
  include FileUtils

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

  protected
  def user
    "vcap"
  end

  def host
    settings.address.ip
  end

  def private_key_path
    File.expand_path(settings.key_pair.path)
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
bosh-bootstrap-0.18.1 lib/bosh-bootstrap/cli/commands/ssh.rb
bosh-bootstrap-0.18.0 lib/bosh-bootstrap/cli/commands/ssh.rb
bosh-bootstrap-0.17.1 lib/bosh-bootstrap/cli/commands/ssh.rb
bosh-bootstrap-0.17.0 lib/bosh-bootstrap/cli/commands/ssh.rb
bosh-bootstrap-0.16.2 lib/bosh-bootstrap/cli/commands/ssh.rb
bosh-bootstrap-0.16.1 lib/bosh-bootstrap/cli/commands/ssh.rb
bosh-bootstrap-0.16.0 lib/bosh-bootstrap/cli/commands/ssh.rb
bosh-bootstrap-0.15.0 lib/bosh-bootstrap/cli/commands/ssh.rb
bosh-bootstrap-0.14.5 lib/bosh-bootstrap/cli/commands/ssh.rb
bosh-bootstrap-0.14.4 lib/bosh-bootstrap/cli/commands/ssh.rb
bosh-bootstrap-0.14.3 lib/bosh-bootstrap/cli/commands/ssh.rb
bosh-bootstrap-0.14.2 lib/bosh-bootstrap/cli/commands/ssh.rb
bosh-bootstrap-0.14.1 lib/bosh-bootstrap/cli/commands/ssh.rb
bosh-bootstrap-0.14.0 lib/bosh-bootstrap/cli/commands/ssh.rb
bosh-bootstrap-0.13.2 lib/bosh-bootstrap/cli/commands/ssh.rb
bosh-bootstrap-0.13.1 lib/bosh-bootstrap/cli/commands/ssh.rb
bosh-bootstrap-0.13.0 lib/bosh-bootstrap/cli/commands/ssh.rb
bosh-bootstrap-0.12.0 lib/bosh-bootstrap/cli/commands/ssh.rb
bosh-bootstrap-0.11.15 lib/bosh-bootstrap/cli/commands/ssh.rb
bosh-bootstrap-0.11.14 lib/bosh-bootstrap/cli/commands/ssh.rb