fleetctl 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/fleet/unit.rb +9 -5
- data/lib/fleetctl/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: ef6a9537f6cb8972b8242ab204b434add2d1ee85
|
4
|
+
data.tar.gz: e2af712de1f96e0fb6fd1323d812503e512689a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58814ef8aee7161e2276c81708db3eb9a80899cb412935d815147f40c0a9add7a52de9ce44b9aa952276f4efe34ce0e46d2a6793f2907ea3e842abc0bf840ddc
|
7
|
+
data.tar.gz: 81f22d987acb102c29b000f5ef45f52c83a5bcea17015e883800d6eb21666b452b300fa2a71dd2303049c00c9599c794a59f9f69e412fb895455a8f390291898
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ Warning: This gem is essentially a wrapper for an executable that is still in al
|
|
8
8
|
|
9
9
|
Add Fleetctl to your Gemfile (I recommend locking yourself to an exact version for now. I may change anything at any time):
|
10
10
|
|
11
|
-
gem 'fleetctl', '0.1.
|
11
|
+
gem 'fleetctl', '0.1.4'
|
12
12
|
|
13
13
|
And `$ bundle install`
|
14
14
|
|
data/lib/fleet/unit.rb
CHANGED
@@ -47,13 +47,17 @@ module Fleet
|
|
47
47
|
runner.output
|
48
48
|
end
|
49
49
|
|
50
|
-
# gets the external port
|
50
|
+
# gets the external port corresponding to the internal port specified
|
51
51
|
# assumes that this unit corresponds to a docker container
|
52
|
-
|
53
|
-
|
54
|
-
docker_runner = Fleetctl::Runner::SSH.new('docker', 'port', container_name,
|
52
|
+
# TODO: split this sort of docker-related functionality out into a separate class
|
53
|
+
def docker_port(internal_port, container_name = name)
|
54
|
+
docker_runner = Fleetctl::Runner::SSH.new('docker', 'port', container_name, internal_port)
|
55
55
|
docker_runner.run(host: ip)
|
56
|
-
|
56
|
+
output = docker_runner.output
|
57
|
+
if output
|
58
|
+
output.rstrip!
|
59
|
+
output.split(':').last
|
60
|
+
end
|
57
61
|
end
|
58
62
|
|
59
63
|
# TODO: GET THIS WORKING
|
data/lib/fleetctl/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fleetctl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Lauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|