awssh 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b1df7dd4b57331d524151ed4088dee8981a79ff
4
- data.tar.gz: e5739363cca8f3d63827d24d0b9408faf1f27612
3
+ metadata.gz: e7235b8d32eed6cbe7485bebffd735312bc25098
4
+ data.tar.gz: 8be04c1baeddf535065b4f724cecc65c4ccd34ca
5
5
  SHA512:
6
- metadata.gz: edd6f9cea522561a58121fea896dc4cc91c0cf512221b7c7963b3e14836bcd3f8aa135fea4ba85f5176bae43d154173aa87a9211a7ca799677060f398244523d
7
- data.tar.gz: b08f4e8de93d2616879a5c8a4ba057d8dea2fc86708bebaa48119b8fb1c6932e473d9c135b2b9c22e9e2728048154b3e520c6e8e1b9bd352c9b363cc004bba34
6
+ metadata.gz: 8e2582a91478d4f6ad3c2240c27f91589d03026591bb78ccd7da9f477219f4c89b0a67a78b668555d23c82922891e6058f6bf0836f24c31c4f75b7babd47312e
7
+ data.tar.gz: f2fb059b79a84e786daf6ee8844685d40ad18cd9431217bfcfbe4a506c280d1a7f2d9c3b778660ad68c7b05bd8693296aa4dc4cf8ef1682af701e5567ade06b3
@@ -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(e)}"
131
+ command = "#{@config["single"]} #{server_url(servers.first)}"
127
132
  end
128
133
  command
129
134
  end
@@ -2,7 +2,7 @@ module Awssh
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 1
5
+ TINY = 2
6
6
  TAG = nil
7
7
  LIST = [MAJOR, MINOR, TINY, TAG].compact
8
8
  STRING = LIST.join('.')
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.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-07 00:00:00.000000000 Z
11
+ date: 2014-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog