dapp 0.35.9 → 0.35.10
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 +4 -4
- data/lib/dapp/dimg/dapp/command/flush_local.rb +17 -5
- data/lib/dapp/dimg/dapp/command/flush_repo.rb +15 -6
- data/lib/dapp/dimg/dapp/command/stages/flush_local.rb +17 -5
- data/lib/dapp/dimg/dapp/command/stages/flush_repo.rb +15 -5
- data/lib/dapp/dimg/docker_registry/dimg.rb +4 -17
- data/lib/dapp/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93fc2053b4bfda93025e3bdcbd110f9159a2f38f341a7e922130ce2e432ec173
|
4
|
+
data.tar.gz: d1f855f7fd71e5b4d03034e7cb2e434b3deb0a951d48527cf8a5ed7f55aaa767
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba0c2aa229a3f24caca6feba765a39a41073abaf0919017edbc3b2eb80410681b86bf807d7334b601db5d567082767f52e07d4ee7bc80399912489d1388916f1
|
7
|
+
data.tar.gz: 820901b1d3f6e20fe10b07bc27cfeccfc6786a4c04e826defa41bff313890c85bc5052b91250b108aa845f818096e71937043d041099ee888343dbe58b8cc3f8
|
@@ -4,11 +4,23 @@ module Dapp
|
|
4
4
|
module Command
|
5
5
|
module FlushLocal
|
6
6
|
def flush_local
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
7
|
+
ruby2go_cleanup_command(:flush, ruby2go_cleanup_flush_local_options)
|
8
|
+
end
|
9
|
+
|
10
|
+
def ruby2go_cleanup_flush_local_options
|
11
|
+
{
|
12
|
+
common_project_options: {
|
13
|
+
project_name: name,
|
14
|
+
common_options: {
|
15
|
+
dry_run: dry_run?,
|
16
|
+
force: true
|
17
|
+
}
|
18
|
+
},
|
19
|
+
with_dimgs: true,
|
20
|
+
with_stages: with_stages?,
|
21
|
+
only_repo: false,
|
22
|
+
}.tap do |json|
|
23
|
+
break JSON.dump(json)
|
12
24
|
end
|
13
25
|
end
|
14
26
|
end
|
@@ -4,12 +4,21 @@ module Dapp
|
|
4
4
|
module Command
|
5
5
|
module FlushRepo
|
6
6
|
def flush_repo
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
7
|
+
ruby2go_cleanup_command(:flush, ruby2go_cleanup_flush_repo_options)
|
8
|
+
end
|
9
|
+
|
10
|
+
def ruby2go_cleanup_flush_repo_options
|
11
|
+
{
|
12
|
+
common_repo_options: {
|
13
|
+
repository: option_repo,
|
14
|
+
dimg_names: dimgs_names,
|
15
|
+
dry_run: dry_run?
|
16
|
+
},
|
17
|
+
with_dimgs: true,
|
18
|
+
with_stages: with_stages?,
|
19
|
+
only_repo: true,
|
20
|
+
}.tap do |json|
|
21
|
+
break JSON.dump(json)
|
13
22
|
end
|
14
23
|
end
|
15
24
|
end
|
@@ -5,12 +5,24 @@ module Dapp
|
|
5
5
|
module Stages
|
6
6
|
module FlushLocal
|
7
7
|
def stages_flush_local
|
8
|
-
|
9
|
-
|
10
|
-
end
|
8
|
+
ruby2go_cleanup_command(:flush, ruby2go_cleanup_stages_flush_local_options)
|
9
|
+
end
|
11
10
|
|
12
|
-
|
13
|
-
|
11
|
+
def ruby2go_cleanup_stages_flush_local_options
|
12
|
+
{
|
13
|
+
common_project_options: {
|
14
|
+
project_name: name,
|
15
|
+
common_options: {
|
16
|
+
dry_run: dry_run?,
|
17
|
+
force: true
|
18
|
+
}
|
19
|
+
},
|
20
|
+
with_dimgs: false,
|
21
|
+
with_stages: true,
|
22
|
+
only_repo: false,
|
23
|
+
}.tap do |json|
|
24
|
+
break JSON.dump(json)
|
25
|
+
end
|
14
26
|
end
|
15
27
|
end
|
16
28
|
end
|
@@ -5,11 +5,21 @@ module Dapp
|
|
5
5
|
module Stages
|
6
6
|
module FlushRepo
|
7
7
|
def stages_flush_repo
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
ruby2go_cleanup_command(:flush, ruby2go_cleanup_stages_flush_repo_options)
|
9
|
+
end
|
10
|
+
|
11
|
+
def ruby2go_cleanup_stages_flush_repo_options
|
12
|
+
{
|
13
|
+
common_repo_options: {
|
14
|
+
repository: option_repo,
|
15
|
+
dimg_names: dimgs_names,
|
16
|
+
dry_run: dry_run?
|
17
|
+
},
|
18
|
+
with_dimgs: false,
|
19
|
+
with_stages: true,
|
20
|
+
only_repo: true,
|
21
|
+
}.tap do |json|
|
22
|
+
break JSON.dump(json)
|
13
23
|
end
|
14
24
|
end
|
15
25
|
end
|
@@ -3,30 +3,17 @@ module Dapp
|
|
3
3
|
module DockerRegistry
|
4
4
|
class Dimg < Base
|
5
5
|
def dimgstages_tags
|
6
|
-
|
7
|
-
ruby2go_docker_registry_command(command: :dimgstage_tags, options: { reference: tag_reference })
|
8
|
-
end
|
6
|
+
ruby2go_docker_registry_command(command: :dimgstage_tags, options: { reference: tag_reference })
|
9
7
|
end
|
10
8
|
|
11
9
|
def dimg_tags(dimg_name)
|
12
|
-
|
13
|
-
with_dimg_repository(dimg_name.to_s) do
|
14
|
-
ruby2go_docker_registry_command(command: :dimg_tags, options: { reference: tag_reference })
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
def nameless_dimg_tags
|
20
|
-
tags_wrapper do
|
10
|
+
with_dimg_repository(dimg_name.to_s) do
|
21
11
|
ruby2go_docker_registry_command(command: :dimg_tags, options: { reference: tag_reference })
|
22
12
|
end
|
23
13
|
end
|
24
14
|
|
25
|
-
def
|
26
|
-
|
27
|
-
rescue Error::Registry => e
|
28
|
-
raise unless e.net_status[:data][:message].include?("NAME_UNKNOWN")
|
29
|
-
[]
|
15
|
+
def nameless_dimg_tags
|
16
|
+
ruby2go_docker_registry_command(command: :dimg_tags, options: { reference: tag_reference })
|
30
17
|
end
|
31
18
|
|
32
19
|
def image_id(tag, dimg_repository = nil)
|
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.35.
|
4
|
+
version: 0.35.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Stolyarov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-shellout
|