owssh 0.0.23 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/owssh.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b7c5df9ec5ed6e88be77d7d3c10da78e06f6ebd
|
4
|
+
data.tar.gz: 378312a4507c952bba9fb1bdedad5099de2b8499
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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
|
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
|