Sha256: 8dabe3e645169a2c8fa7969f563d2deb7c83aaf21aa9e8d707726b43e4286ae6

Contents?: true

Size: 561 Bytes

Versions: 14

Compression:

Stored size: 561 Bytes

Contents

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

require "bosh-bootstrap/cli/commands/ssh"

describe Bosh::Bootstrap::Cli::Commands::SSH do
  include StdoutCapture
  include Bosh::Bootstrap::Cli::Helpers

  let(:settings_dir) { work_dir }

  subject { Bosh::Bootstrap::Cli::Commands::SSH.new }

  it "runs ssh" do
    setting "address.ip", "1.2.3.4"
    setting "key_pair.path", "/path/to/private/key"
    expect(subject).to receive(:setup_keypair)
    expect(subject).to receive(:sh).with("ssh -i /path/to/private/key vcap@1.2.3.4")
    subject.perform
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bosh-bootstrap-0.18.1 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.18.0 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.17.1 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.17.0 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.16.2 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.16.1 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.16.0 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.15.0 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.14.5 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.14.4 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.14.3 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.14.2 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.14.1 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.14.0 spec/unit/commands/ssh_spec.rb