Sha256: 7a689d836ef372d54cfd96cbede48b210fe17ac1621d3f6ef5297bdfd2746ba4

Contents?: true

Size: 533 Bytes

Versions: 5

Compression:

Stored size: 533 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(:sh).with("ssh -i /path/to/private/key vcap@1.2.3.4")
    subject.perform
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bosh-bootstrap-0.11.4 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.11.3 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.11.2 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.11.1 spec/unit/commands/ssh_spec.rb
bosh-bootstrap-0.11.0 spec/unit/commands/ssh_spec.rb