capistrano-dockercompose-interactive 0.0.7 → 0.0.8

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: 1893e9123b779f50a32c14c02c9b750b6765cd2d
4
- data.tar.gz: 487bcd3c8c06da68b4cc6b81b078c98d0823ca2a
3
+ metadata.gz: 204f27b22ace55771864f290ca12e9b0c67ec55b
4
+ data.tar.gz: a99ed2340e2f470772d0f75181b2bb259b12103d
5
5
  SHA512:
6
- metadata.gz: 59bd78c64825f387f0f03408a1c562e5bd5dbbcfd3892f9cbbd11b7720ef2f826a8c4a7f6eb6296526b992f219c608296215b9a2ea39ae273da15ec9ed3b7df0
7
- data.tar.gz: 4a953f13550390a658f929be54ede92542741904742fea18e18ad646481c8539eca7a509d0abac8ecd19ce5872584b0e9d7ca45e7275125bad0b35008fc9f323
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.7'
8
- spec.date = '2018-02-03'
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
- false
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.7
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-03 00:00:00.000000000 Z
11
+ date: 2018-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano