fleetctl-setup 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 368edd6b5938276d3f253138dcd445600ab37978
4
- data.tar.gz: e0884b5b1c6bce07177ab0541c1b429d033214f4
3
+ metadata.gz: 0b4da79067c77994706ba1706c71c0ffb19aa03c
4
+ data.tar.gz: ff173a80f4a7ae15d637449d2886fd9b3293535c
5
5
  SHA512:
6
- metadata.gz: 2c44444ad8c392f4a296333eaad8f5da7a5f6964bdb3e1217a80825b63aa2bc5e8c789adc0e4baaa5bf264151b49fa868787ca1cc19a0c8e45eb771dff09e876
7
- data.tar.gz: ba47c72bb231741a4228040fc5882f212cc2921865b9067d3b63a89dad9158f98ce7fc4919a769e32753ade945c60e1745a0ce81fa68c650b0112a6c09537fbe
6
+ metadata.gz: 8c8354cd779c07571d1d778e5ba1cf42e3fa92ecfc2633207c9aabee37d144ad7d5eeb9b157f1bf25fe5f21ab65cb23010a75f4cfd3190404b25ddbf7494881e
7
+ data.tar.gz: d523f2825cab921997aacfd4729b6982b53eb43860f8d661ed6b972b0c8b532857f9b2bc949d13ee048290810d4ff3f5ed462bc577bc6ab0c0bd8cdcdb851478
data/bin/fleetctl-setup CHANGED
@@ -8,4 +8,7 @@ cli.parse_opts!
8
8
  warn "Picking randomly from #{cli.instance_ips.join(', ')}."
9
9
  ip_address = cli.instance_ips.sample
10
10
 
11
+ # dump to stderr AND stdout so one can eval the output to export the variable
12
+ # yet still see the result
13
+ warn "FLEETCTL_TUNNEL=#{ip_address}"
11
14
  puts "export FLEETCTL_TUNNEL=#{ip_address}"
@@ -39,7 +39,9 @@ module Fleetctl::Setup
39
39
  choice = user_choice(results)
40
40
  warn "Looking up instances for #{choice.description}"
41
41
 
42
- @instance_ips = choice.instances.map(&:public_ip_address)
42
+ @instance_ips = choice.instances.map(&:public_ip_address).compact
43
+ warn "No instances found" if @instance_ips.empty?
44
+ return @instance_ips
43
45
  end
44
46
 
45
47
  private
@@ -1,5 +1,5 @@
1
1
  module Fleetctl
2
2
  module Setup
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fleetctl-setup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Taylor Long
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-18 00:00:00.000000000 Z
11
+ date: 2014-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler