owssh 0.0.23 → 0.0.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/owssh.rb +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 89e29716edeb3b2a79485f179a8cb20b47ad55dd
4
- data.tar.gz: c804fca44ae34a035bf0cd4ca7ffdcee96f772f4
3
+ metadata.gz: 0b7c5df9ec5ed6e88be77d7d3c10da78e06f6ebd
4
+ data.tar.gz: 378312a4507c952bba9fb1bdedad5099de2b8499
5
5
  SHA512:
6
- metadata.gz: 4e10bc353e45f2459bc6a44831acceac5dc0a9b03a533ec8b0f8a0917d8fce2db1a6713d1162481770e3d6a58c0dc8e201102adeb1e7d3e96f921de9f13682e0
7
- data.tar.gz: f2d4ac0f1d5d2e3a775a47ec39354a3c60a335e9fc1da3389f7e8e8d6303b64780dfa6a2919410349cc607e37bff4f94a42c10d35a15683686f6d7cfa27ed363
6
+ metadata.gz: 58e0c8b334a72df8e4262f953cd9233f2dee5e9d9c3aa37afea728ae04d00eb2ce4e94641e04a23ac54cd86c6edc61731bf46fcb31bf6daf2915db4f0eb9c347
7
+ data.tar.gz: 174e765b0e485b0cb71330eeaf5f464ab6f35fba8918463f36085cc8e447463a0d7fe6ee69c79e51c3c612a162a6c626329cbb6822cb94e4ab585f10aa7957fa
data/lib/owssh.rb CHANGED
@@ -148,11 +148,11 @@ class Owssh
148
148
  # SSH to specific host
149
149
  if ARGV[2].nil? then
150
150
  puts "Opening SSH connection to #{ARGV[1]}..."
151
- exec("ssh -i ~/.ssh/id_rsa_dev ubuntu@#{$instances[ARGV[1].downcase.to_s]['PUB_IP']}")
151
+ exec("ssh -i #{$ssh_key_file} ubuntu@#{$instances[ARGV[1].downcase.to_s]['PUB_IP']}")
152
152
  elsif ARGV[3].nil? then
153
153
  # Run command through SSH on host
154
154
  puts "Running comand #{ARGV[2]} on host #{ARGV[1]}..."
155
- exec("ssh -i ~/.ssh/id_rsa_dev ubuntu@#{$instances[ARGV[1].downcase.to_s]['PUB_IP']} '#{ARGV[2]}'")
155
+ exec("ssh -i #{$ssh_key_file} ubuntu@#{$instances[ARGV[1].downcase.to_s]['PUB_IP']} '#{ARGV[2]}'")
156
156
  end
157
157
  else
158
158
  # SSH to first instance of certain type
@@ -172,7 +172,7 @@ class Owssh
172
172
  else
173
173
  puts "Running command '#{ARGV[2]}' on first host of type '#{ARGV[1]}' which is '#{$first_instance}'..."
174
174
  end
175
- exec("ssh -i ~/.ssh/id_rsa_dev ubuntu@#{$instances[$first_instance.to_s]['PUB_IP']} '#{ARGV[2]}'")
175
+ exec("ssh -i #{$ssh_key_file} ubuntu@#{$instances[$first_instance.to_s]['PUB_IP']} '#{ARGV[2]}'")
176
176
  end
177
177
  end
178
178
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: owssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.23
4
+ version: 0.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Hutchins