dapp 0.19.1 → 0.19.2
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c037e5dce35bc69e87ce7c2c6213552ffc64e754a598ef8194a0368cd3457b7d
|
|
4
|
+
data.tar.gz: a3eccff3be519589029e7dc4b6fd0e6130594b9b86e9e891ab5f5e23f1c04708
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 99bbba3a27f3bceb41525fe07768bf947beafd4dee895673b30f958dc6e5f17446d3ae38fae6582bcd027a81e700bbe5b2d29906c6ab4def3ec00d69270f08d4
|
|
7
|
+
data.tar.gz: dcff4f27aa9c00289a709178f2be6b33a80e65802f53fc181c3ffdc1f83eb44e289acf64b685f1cf4469727bd54f2606f744acc62a033cebda6fc151c352ca47
|
data/lib/dapp.rb
CHANGED
|
@@ -203,6 +203,7 @@ require 'dapp/dimg/cli/command/dimg/build_context'
|
|
|
203
203
|
require 'dapp/dimg/cli/command/dimg/build_context/export'
|
|
204
204
|
require 'dapp/dimg/cli/command/dimg/build_context/import'
|
|
205
205
|
require 'dapp/dimg/cli/command/dimg/stages'
|
|
206
|
+
require 'dapp/dimg/cli/command/dimg/stages/base'
|
|
206
207
|
require 'dapp/dimg/cli/command/dimg/stages/flush_local'
|
|
207
208
|
require 'dapp/dimg/cli/command/dimg/stages/flush_repo'
|
|
208
209
|
require 'dapp/dimg/cli/command/dimg/stages/cleanup_local'
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Dapp::Dimg::CLI
|
|
2
|
+
module Command
|
|
3
|
+
class Dimg < ::Dapp::CLI
|
|
4
|
+
class Stages < ::Dapp::CLI
|
|
5
|
+
class Base < Base
|
|
6
|
+
def run_dapp_command(run_command, options: {})
|
|
7
|
+
super(run_command, options: options.merge(verbose: true))
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -36,7 +36,7 @@ module Dapp
|
|
|
36
36
|
|
|
37
37
|
def dapp_project_images
|
|
38
38
|
@dapp_project_images ||= [].tap do |images|
|
|
39
|
-
shellout!(%(#{host_docker} images --format="{{.ID}};{{.Repository}}:{{.Tag}};{{.CreatedAt}}" -f "label=dapp" #{stage_cache}
|
|
39
|
+
shellout!(%(#{host_docker} images --format="{{.ID}};{{.Repository}}:{{.Tag}};{{.CreatedAt}}" -f "label=dapp" --no-trunc #{stage_cache}))
|
|
40
40
|
.stdout
|
|
41
41
|
.lines
|
|
42
42
|
.map(&:strip)
|
|
@@ -113,6 +113,7 @@ module Dapp
|
|
|
113
113
|
def remove_base(query_format, ids, force: false)
|
|
114
114
|
return if ids.empty?
|
|
115
115
|
force_option = force ? ' -f' : ''
|
|
116
|
+
log(ids.join("\n")) if log_verbose? || dry_run?
|
|
116
117
|
ids.each_slice(50) { |chunk| run_command(format(query_format, force_option: force_option, ids: chunk.join(' '))) }
|
|
117
118
|
end
|
|
118
119
|
|
|
@@ -122,7 +123,6 @@ module Dapp
|
|
|
122
123
|
end
|
|
123
124
|
|
|
124
125
|
def run_command(cmd)
|
|
125
|
-
log(cmd) if log_verbose? || dry_run?
|
|
126
126
|
shellout!(cmd) unless dry_run?
|
|
127
127
|
end
|
|
128
128
|
|
|
@@ -30,7 +30,7 @@ module Dapp
|
|
|
30
30
|
|
|
31
31
|
def actual_cache_project_images_ids
|
|
32
32
|
@actual_cache_project_images_ids ||= begin
|
|
33
|
-
shellout!(%(#{host_docker} images -f "label=dapp" -f "label=dapp-cache-version=#{::Dapp::BUILD_CACHE_VERSION}"
|
|
33
|
+
shellout!(%(#{host_docker} images -f "label=dapp" -f "label=dapp-cache-version=#{::Dapp::BUILD_CACHE_VERSION}" -q --no-trunc #{stage_cache}))
|
|
34
34
|
.stdout
|
|
35
35
|
.lines
|
|
36
36
|
.map(&:strip)
|
data/lib/dapp/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dapp
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.19.
|
|
4
|
+
version: 0.19.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitry Stolyarov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-11-
|
|
11
|
+
date: 2017-11-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mixlib-shellout
|
|
@@ -545,6 +545,7 @@ files:
|
|
|
545
545
|
- lib/dapp/dimg/cli/command/dimg/spush.rb
|
|
546
546
|
- lib/dapp/dimg/cli/command/dimg/stage_image.rb
|
|
547
547
|
- lib/dapp/dimg/cli/command/dimg/stages.rb
|
|
548
|
+
- lib/dapp/dimg/cli/command/dimg/stages/base.rb
|
|
548
549
|
- lib/dapp/dimg/cli/command/dimg/stages/cleanup_local.rb
|
|
549
550
|
- lib/dapp/dimg/cli/command/dimg/stages/cleanup_repo.rb
|
|
550
551
|
- lib/dapp/dimg/cli/command/dimg/stages/flush_local.rb
|