owssh 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/owssh.rb +3 -3
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 09816dffb25e08a4c301f558a7a5adce6cf29168
|
4
|
+
data.tar.gz: eb7e2d08fc7387784cb9247dce4b6d7d9ec55302
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c97c55a1f184bba3bba0fec9fbbfec3aa499fe86d847ca9d86cd333ca8cc6f5067d70410d44ebf76ca89e9f04a6d27f38d7a522b283f2d4d87b37a99b49c0861
|
7
|
+
data.tar.gz: ee150b638bc6fe8807b635bfac734f5d7ef10dd1d3bd2de1507da542ec5b2c1344749e4b5e7693ceaa9141d419d87f46788ac26d201fe2286eb24eae115ca1ec
|
data/lib/owssh.rb
CHANGED
@@ -138,7 +138,7 @@ class Owssh
|
|
138
138
|
if $instances.has_key?(ARGV[1]) then
|
139
139
|
# Open interactive SSH connnection
|
140
140
|
if ARGV[2].nil? then
|
141
|
-
puts "Opening connection to #{ARGV[1]}..."
|
141
|
+
puts "Opening SSH connection to #{ARGV[1]}..."
|
142
142
|
exec("ssh -i ~/.ssh/id_rsa_dev ubuntu@#{$instances[ARGV[1].to_s]}")
|
143
143
|
elsif ARGV[3].nil? then
|
144
144
|
# Run command through SSH on host
|
@@ -158,9 +158,9 @@ class Owssh
|
|
158
158
|
exit
|
159
159
|
else
|
160
160
|
if ARGV[2].nil? then
|
161
|
-
puts "
|
161
|
+
puts "Opening SSH connection to first of type '#{ARGV[1]}' which is '#{first_instance}'..."
|
162
162
|
else
|
163
|
-
puts "Running
|
163
|
+
puts "Running command '#{ARGV[2]}' on first host of type '#{ARGV[1]}' which is '#{$first_instance}'..."
|
164
164
|
end
|
165
165
|
exec("ssh -i ~/.ssh/id_rsa_dev ubuntu@#{$instances[$first_instance.to_s]} '#{ARGV[2]}'")
|
166
166
|
end
|
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.
|
4
|
+
version: 0.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Hutchins
|
@@ -31,8 +31,8 @@ executables:
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
-
- lib/owssh.rb
|
35
34
|
- bin/owssh
|
35
|
+
- lib/owssh.rb
|
36
36
|
homepage: http://phutchins.com/
|
37
37
|
licenses:
|
38
38
|
- MIT
|
@@ -53,8 +53,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
53
|
version: '0'
|
54
54
|
requirements: []
|
55
55
|
rubyforge_project:
|
56
|
-
rubygems_version: 2.
|
56
|
+
rubygems_version: 2.2.2
|
57
57
|
signing_key:
|
58
58
|
specification_version: 4
|
59
59
|
summary: OWssh
|
60
60
|
test_files: []
|
61
|
+
has_rdoc:
|