Sha256: 06c6fbd05fccb5500334c95c50ec8e9b21f70e30d78c4890d5d758be1d51d75d

Contents?: true

Size: 576 Bytes

Versions: 14

Compression:

Stored size: 576 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) { File.expand_path("~/.microbosh") }

  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"
    subject.should_receive(:setup_keypair)
    subject.should_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.13.2 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.13.1 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.13.0 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.12.0 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.11.15 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.11.14 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.11.13 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.11.12 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.11.11 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.11.9 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.11.8 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.11.7 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.11.6 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.11.5 spec/unit/commands/ssh_spec.rb