avm-tools 0.147.0 → 0.149.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avm/tools/runner/instance/data/clear.rb +18 -0
- data/lib/avm/tools/runner/instance/data/dump.rb +1 -5
- data/lib/avm/tools/runner/instance/data/unit/clear.rb +1 -5
- data/lib/avm/tools/runner/instance/data/unit/dump.rb +2 -2
- data/lib/avm/tools/runner/instance/data/unit/load.rb +1 -1
- data/lib/avm/tools/runner/instance/data/unit.rb +3 -1
- data/lib/avm/tools/runner/instance/data.rb +7 -0
- data/lib/avm/tools/runner/launcher.rb +0 -1
- data/lib/avm/tools/runner/launcher_stereotypes/list.rb +0 -1
- data/lib/avm/tools/runner_with/include_exclude.rb +23 -0
- data/lib/avm/tools/runner_with/instance_data_clear.rb +30 -0
- data/lib/avm/tools/runner_with.rb +11 -0
- data/lib/avm/tools/version.rb +1 -1
- metadata +14 -18
- data/lib/avm/projects/stereotypes.rb +0 -15
- data/lib/avm/projects.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b9d3ec974736d535de064589ef2af6f4fae2b149e043675200df92b851eea30
|
4
|
+
data.tar.gz: 8da5ec56f8c81c6cdaa403534c33d88586c64eda07e7a706674ffc650f27908f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45591b92498af434eaae3eb096134b6d8952593fdaeffea04d143e76a534593ad689ce15f2c2f39164f2b625696749aabfb6992c648444631a345fdb3fd00f9f
|
7
|
+
data.tar.gz: 91962893c6add83e548ad9a02bd9c2ef69a759eb6e8d1f002483f44afeff041f35968957c9a2c44b33a7274e416f7c7c53c45e78bef215bc2234783ae6a9fff3
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/instances/runner'
|
4
|
+
require 'eac_cli/core_ext'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module Tools
|
8
|
+
class Runner
|
9
|
+
class Instance < ::Avm::Instances::Runner
|
10
|
+
class Data
|
11
|
+
class Clear
|
12
|
+
runner_with :help, :include_exclude, :instance_data_clear
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -17,7 +17,7 @@ module Avm
|
|
17
17
|
runner_with :help do
|
18
18
|
desc 'Dump utility for EacRailsBase instance.'
|
19
19
|
bool_opt '-w', '--rewrite', 'Forces dump overwrite.'
|
20
|
-
pos_arg :dump_path
|
20
|
+
pos_arg :dump_path, optional: true
|
21
21
|
end
|
22
22
|
|
23
23
|
# @return [String]
|
@@ -38,10 +38,6 @@ module Avm
|
|
38
38
|
|
39
39
|
private
|
40
40
|
|
41
|
-
def instance
|
42
|
-
runner_context.call(:instance)
|
43
|
-
end
|
44
|
-
|
45
41
|
def package_dump_uncached
|
46
42
|
instance
|
47
43
|
.data_package.dump(dump_path, existing: package_dump_existing)
|
@@ -15,7 +15,7 @@ module Avm
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def run
|
18
|
-
|
18
|
+
data_owner.dump(dump_path)
|
19
19
|
end
|
20
20
|
|
21
21
|
# @return [String]
|
@@ -30,7 +30,7 @@ module Avm
|
|
30
30
|
|
31
31
|
# @return [String]
|
32
32
|
def default_dump_path
|
33
|
-
|
33
|
+
data_owner.data_default_dump_path
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
@@ -15,6 +15,8 @@ module Avm
|
|
15
15
|
subcommands
|
16
16
|
end
|
17
17
|
|
18
|
+
for_context :data_owner
|
19
|
+
|
18
20
|
# @return [Enumerable<String>]
|
19
21
|
def available_units_ids
|
20
22
|
data_package.units_ids
|
@@ -26,7 +28,7 @@ module Avm
|
|
26
28
|
end
|
27
29
|
|
28
30
|
# @return [Avm::Instances::Data::Unit]
|
29
|
-
def
|
31
|
+
def data_owner
|
30
32
|
data_package.unit(parsed.identifier)
|
31
33
|
end
|
32
34
|
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_cli/core_ext'
|
4
|
+
require 'eac_cli/runner'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module Tools
|
8
|
+
module RunnerWith
|
9
|
+
module IncludeExclude
|
10
|
+
common_concern do
|
11
|
+
include ::EacCli::Runner
|
12
|
+
|
13
|
+
runner_definition do
|
14
|
+
arg_opt '-I', '--include', repeat: true
|
15
|
+
arg_opt '-E', '--exclude', repeat: true
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
delegate :include, :exclude, to: :parsed
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/data/clearer'
|
4
|
+
require 'eac_cli/core_ext'
|
5
|
+
require 'eac_cli/runner'
|
6
|
+
|
7
|
+
module Avm
|
8
|
+
module Tools
|
9
|
+
module RunnerWith
|
10
|
+
module InstanceDataClear
|
11
|
+
common_concern do
|
12
|
+
enable_simple_cache
|
13
|
+
include ::EacCli::Runner
|
14
|
+
end
|
15
|
+
|
16
|
+
def run
|
17
|
+
performer.perform
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def performer_uncached
|
23
|
+
%i[include exclude].inject(::Avm::Data::Clearer.new(data_owner)) do |a1, e1|
|
24
|
+
if_respond(e1, []).inject(a1) { |a2, e2| a2.send(e1, e2) }
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
data/lib/avm/tools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avm-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.149.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha-parsers
|
@@ -16,34 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 0.17.1
|
19
|
+
version: '0.18'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 0.17.1
|
26
|
+
version: '0.18'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: avm
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
31
|
- - "~>"
|
38
32
|
- !ruby/object:Gem::Version
|
39
|
-
version: '0.
|
33
|
+
version: '0.73'
|
40
34
|
type: :runtime
|
41
35
|
prerelease: false
|
42
36
|
version_requirements: !ruby/object:Gem::Requirement
|
43
37
|
requirements:
|
44
38
|
- - "~>"
|
45
39
|
- !ruby/object:Gem::Version
|
46
|
-
version: '0.
|
40
|
+
version: '0.73'
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
42
|
name: avm-eac_ruby_base1
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,7 +47,7 @@ dependencies:
|
|
53
47
|
version: '0.30'
|
54
48
|
- - ">="
|
55
49
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.30.
|
50
|
+
version: 0.30.3
|
57
51
|
type: :runtime
|
58
52
|
prerelease: false
|
59
53
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -63,7 +57,7 @@ dependencies:
|
|
63
57
|
version: '0.30'
|
64
58
|
- - ">="
|
65
59
|
- !ruby/object:Gem::Version
|
66
|
-
version: 0.30.
|
60
|
+
version: 0.30.3
|
67
61
|
- !ruby/object:Gem::Dependency
|
68
62
|
name: avm-eac_ubuntu_base0
|
69
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -190,14 +184,14 @@ dependencies:
|
|
190
184
|
requirements:
|
191
185
|
- - "~>"
|
192
186
|
- !ruby/object:Gem::Version
|
193
|
-
version: '0.
|
187
|
+
version: '0.19'
|
194
188
|
type: :runtime
|
195
189
|
prerelease: false
|
196
190
|
version_requirements: !ruby/object:Gem::Requirement
|
197
191
|
requirements:
|
198
192
|
- - "~>"
|
199
193
|
- !ruby/object:Gem::Version
|
200
|
-
version: '0.
|
194
|
+
version: '0.19'
|
201
195
|
- !ruby/object:Gem::Dependency
|
202
196
|
name: eac_templates
|
203
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -264,8 +258,6 @@ files:
|
|
264
258
|
- Gemfile
|
265
259
|
- exe/avm
|
266
260
|
- lib/avm.rb
|
267
|
-
- lib/avm/projects.rb
|
268
|
-
- lib/avm/projects/stereotypes.rb
|
269
261
|
- lib/avm/tools.rb
|
270
262
|
- lib/avm/tools/core_ext.rb
|
271
263
|
- lib/avm/tools/runner.rb
|
@@ -288,6 +280,7 @@ files:
|
|
288
280
|
- lib/avm/tools/runner/git/subrepo/fix.rb
|
289
281
|
- lib/avm/tools/runner/instance.rb
|
290
282
|
- lib/avm/tools/runner/instance/data.rb
|
283
|
+
- lib/avm/tools/runner/instance/data/clear.rb
|
291
284
|
- lib/avm/tools/runner/instance/data/dump.rb
|
292
285
|
- lib/avm/tools/runner/instance/data/load.rb
|
293
286
|
- lib/avm/tools/runner/instance/data/unit.rb
|
@@ -315,6 +308,9 @@ files:
|
|
315
308
|
- lib/avm/tools/runner/source/update.rb
|
316
309
|
- lib/avm/tools/runner/source/version_bump.rb
|
317
310
|
- lib/avm/tools/runner/source_generate.rb
|
311
|
+
- lib/avm/tools/runner_with.rb
|
312
|
+
- lib/avm/tools/runner_with/include_exclude.rb
|
313
|
+
- lib/avm/tools/runner_with/instance_data_clear.rb
|
318
314
|
- lib/avm/tools/self.rb
|
319
315
|
- lib/avm/tools/version.rb
|
320
316
|
- template/avm/self/docker_image/Dockerfile
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/git/launcher_stereotypes/git'
|
4
|
-
require 'avm/git/launcher_stereotypes/git_subrepo'
|
5
|
-
require 'avm/git/launcher_stereotypes/git_subtree'
|
6
|
-
require 'avm/eac_ruby_base1/launcher_stereotypes/base'
|
7
|
-
require 'eac_ruby_utils/core_ext'
|
8
|
-
|
9
|
-
module Avm
|
10
|
-
module Projects
|
11
|
-
module Stereotypes
|
12
|
-
require_sub __FILE__, base: nil
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|