docker-compose-wait 0.1.4 → 0.1.5

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/docker-compose-wait +6 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9bbefc936fb10b338947ce5f0fa7525cd7827409
4
- data.tar.gz: 2215db91ff9d451a89d6d64ce506070c24b915c2
3
+ metadata.gz: 804fcfd9451840a695438662d92f448129442768
4
+ data.tar.gz: 1971bbc7b44ae377fb8dccba922f83a0868b719d
5
5
  SHA512:
6
- metadata.gz: feeb83874b55e971e60a41acd2a74be8632654b64fd8c8bfcac5d97d6bfd92bb69620290829b963878c800151797685009496706cf97b64e7b1143a0f62fb6ff
7
- data.tar.gz: a6fe9e407f6f2806b0625f8fdf6bf2d8ce6a8d548bb67c2af8ef8d20bf212e54b70134eccde01051969f22020481c38b11a786cb97c8bec99d37d50675fe2ea8
6
+ metadata.gz: 9f9737cce46c725cdd9713b30d2ad39d6bc38635a2ef37dbc65940a5fab40bacb48437575441bdb85005891982c1a5575198a3166731ad95bdcb41025c9b585c
7
+ data.tar.gz: 10cf14e27b3b0dcd7f9a4dba19d0cd67c46a02c276c0645c3e3fe4c26c54a823b5beaae89c4faeb20e0e9a8217c4623e73b91cc399bb3595129896400fecff02
@@ -6,8 +6,11 @@ require 'open3'
6
6
  options = {regexp: false}
7
7
 
8
8
  optparser = OptionParser.new do |opts|
9
- opts.banner = "USAGE: #$0 [--file FILE] [--regexp] docker-compose-container pattern"
10
- opts.on('-f FILEPATH', '--file FILEPATH', 'Specify an alternate compose file') do |file|
9
+ opts.banner = "USAGE: #$0 [-p NAME] [--file FILE] [--regexp] docker-compose-container pattern"
10
+ opts.on('-p NAME', '--project-name NAME', 'Specify an alternate project name') do |project|
11
+ options[:project] = project
12
+ end
13
+ opts.on('-f FILE', '--file FILE', 'Specify an alternate compose file') do |file|
11
14
  options[:file] = file
12
15
  end
13
16
  opts.on('--[no-]regexp') do |regexp|
@@ -29,6 +32,7 @@ end
29
32
 
30
33
  opts = []
31
34
  opts.concat(['-f', options[:file]]) if options[:file]
35
+ opts.concat(['-p', options[:project]]) if options[:project]
32
36
 
33
37
  Open3.popen2e('docker-compose', *opts, 'logs', '-f', container) do |stdin, output, wait_thr|
34
38
  stdin.close
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-compose-wait
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bachue Zhou