This repository has been archived by the owner on Feb 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 573
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a proxy command option to SSH commands
Now with more tests! Kinda. Closes #207
- Loading branch information
R. Tyler Croy
committed
May 30, 2014
1 parent
33ac3fd
commit 740f73e
Showing
4 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--format doc --order random --color --fail-fast |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
require 'spec_helper' | ||
require 'vagrant-aws/action/sync_folders' | ||
|
||
describe VagrantPlugins::AWS::Action::SyncFolders do | ||
let(:app) { nil } | ||
let(:env) { {} } | ||
subject(:action) { described_class.new(app, env) } | ||
|
||
describe '#ssh_options_to_args' do | ||
subject(:args) { action.ssh_options_to_args(options) } | ||
|
||
context 'with no ssh options' do | ||
let(:options) { [] } | ||
|
||
it { should eql [] } | ||
end | ||
|
||
context 'with one option' do | ||
let(:options) { ['StrictHostKeyChecking=no'] } | ||
it { should eql ["-o 'StrictHostKeyChecking=no'"] } | ||
end | ||
|
||
context 'with multiple options' do | ||
let(:options) { ['SHKC=no', 'Port=222'] } | ||
it { should eql ["-o 'SHKC=no'", "-o 'Port=222'"] } | ||
end | ||
end | ||
end |