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 +4 -4
- data/bin/fleetctl-setup +3 -0
- data/lib/fleetctl/setup/cli.rb +3 -1
- data/lib/fleetctl/setup/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: 0b4da79067c77994706ba1706c71c0ffb19aa03c
|
4
|
+
data.tar.gz: ff173a80f4a7ae15d637449d2886fd9b3293535c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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}"
|
data/lib/fleetctl/setup/cli.rb
CHANGED
@@ -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
|
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.
|
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-
|
11
|
+
date: 2014-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|