ssh-wrapper 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/ssh-wrapper +4 -5
  2. metadata +4 -4
@@ -3,16 +3,15 @@
3
3
  # Set up command line
4
4
  command = ['ssh']
5
5
  # Do we want to skip SSH hostkey checking?
6
- command << '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' if ENV['SSH_SKIP_HOSTKEY_CHECK']
6
+ command << ["-o", "UserKnownHostsFile=/dev/null", "-o", "StrictHostKeyChecking=no"] if ENV['SSH_SKIP_HOSTKEY_CHECK']
7
7
  # Use a custom private key file?
8
- command << "-i #{ENV['SSH_IDENTITY_FILE']}" if ENV['SSH_IDENTITY_FILE']
8
+ command << ["-i", "#{ENV['SSH_IDENTITY_FILE']}"] if ENV['SSH_IDENTITY_FILE']
9
9
  # Use a custom port?
10
- command << "-p #{ENV['SSH_PORT']}" if ENV['SSH_PORT']
10
+ command << ["-p", "#{ENV['SSH_PORT']}"] if ENV['SSH_PORT']
11
11
  # Get the remaining options from the command line
12
12
  command += $*
13
13
  # Quote each option
14
- command = command.map{|p|'"'+p+'"'}
14
+ command = command.flatten.map{|p|'"'+p+'"'}
15
15
 
16
16
  # Execute the command
17
17
  exec command.join(' ')
18
-
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssh-wrapper
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Charlie Smurthwaite
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-26 00:00:00 +00:00
18
+ date: 2010-12-01 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies: []
21
21