capistrano-dockercompose-interactive 0.0.7 → 0.0.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 204f27b22ace55771864f290ca12e9b0c67ec55b
|
4
|
+
data.tar.gz: a99ed2340e2f470772d0f75181b2bb259b12103d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6447fe16fb9c544eb207e20010094b3f7bd2dc05601a0925db2e3f96c36ad54e1a4251e6e4adda68ff16155432bb081b88d4e8abe829067667bd82075cffb824
|
7
|
+
data.tar.gz: d57d0c47f6898ecafc64b0336cfe59ed16885e07701c8e68e42256c38100f13d6e1202b914aa80ee19d829ddc6e3816dac20243071578d6805a9781527ed5f22
|
data/README.md
CHANGED
@@ -33,6 +33,10 @@ require 'capistrano/dockercompose/interactive'
|
|
33
33
|
|
34
34
|
## Changes
|
35
35
|
|
36
|
+
### Version 0.0.8
|
37
|
+
* fix `isup?` boolean behaviour
|
38
|
+
* add `DockerCompose::Interactive::Instance::count_container`
|
39
|
+
|
36
40
|
### Version 0.0.7
|
37
41
|
* add `isup?`, `satrt`, `stop`, `restart`, `up`, `down`, `build`, `pull`, `start_or_restart` to `DockerCompose::Interactive::Instance`
|
38
42
|
|
@@ -4,8 +4,8 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'capistrano-dockercompose-interactive'
|
7
|
-
spec.version = '0.0.
|
8
|
-
spec.date = '2018-02-
|
7
|
+
spec.version = '0.0.8'
|
8
|
+
spec.date = '2018-02-08'
|
9
9
|
spec.summary = 'Helps managing docker compose excution on local or remote with inetractive shell support'
|
10
10
|
spec.description = spec.summary
|
11
11
|
spec.authors = ['Tom Hanoldt']
|
@@ -36,10 +36,16 @@ module DockerCompose
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def isup?
|
39
|
+
count_container > 0
|
40
|
+
rescue
|
41
|
+
false
|
42
|
+
end
|
43
|
+
|
44
|
+
def count_container
|
39
45
|
count = execute_compose_command('ps -q | wc -l', capture = true)
|
40
46
|
count.to_i
|
41
47
|
rescue
|
42
|
-
|
48
|
+
0
|
43
49
|
end
|
44
50
|
|
45
51
|
# starts or restarts a docker compose
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-dockercompose-interactive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Hanoldt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|