awssh 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/awssh/command.rb +6 -1
- data/lib/awssh/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7235b8d32eed6cbe7485bebffd735312bc25098
|
4
|
+
data.tar.gz: 8be04c1baeddf535065b4f724cecc65c4ccd34ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e2582a91478d4f6ad3c2240c27f91589d03026591bb78ccd7da9f477219f4c89b0a67a78b668555d23c82922891e6058f6bf0836f24c31c4f75b7babd47312e
|
7
|
+
data.tar.gz: f2fb059b79a84e786daf6ee8844685d40ad18cd9431217bfcfbe4a506c280d1a7f2d9c3b778660ad68c7b05bd8693296aa4dc4cf8ef1682af701e5567ade06b3
|
data/lib/awssh/command.rb
CHANGED
@@ -73,6 +73,11 @@ module Awssh
|
|
73
73
|
puts "- #{s}"
|
74
74
|
end if @options[:verbose]
|
75
75
|
|
76
|
+
if @servers.count == 0
|
77
|
+
puts "no servers found"
|
78
|
+
exit 1
|
79
|
+
end
|
80
|
+
|
76
81
|
if @servers.count > 1 && !@options[:multi]
|
77
82
|
puts "more than one server found, and multi is false"
|
78
83
|
puts "set the -m flag to connect to more than one matched server"
|
@@ -123,7 +128,7 @@ module Awssh
|
|
123
128
|
if @options[:multi]
|
124
129
|
command = "#{@config["multi"]} #{servers.map {|e| server_url(e) }.join(' ')}"
|
125
130
|
else
|
126
|
-
command = "#{@config["single"]} #{server_url(
|
131
|
+
command = "#{@config["single"]} #{server_url(servers.first)}"
|
127
132
|
end
|
128
133
|
command
|
129
134
|
end
|
data/lib/awssh/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awssh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shawn Catanzarite
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog
|