avm-tools 0.152.0 → 0.154.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/entry.rb +43 -0
- data/lib/avm/tools/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52c59965a5479bfb942ba27eee544059b02acdc43c68051d09e63b0e6ee07ef7
|
4
|
+
data.tar.gz: 19798b01a4c984c367cb88916510d8209a5123c39c082d591d05eaf99cd2eafd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27ccd30c21a722f7616cd15e3af397dbdb226049224e63e98a1e4f9c618a239451a91dfeb0b820f0cad82223071195bd1aeeef46af429eef1ff9d0859e962f92
|
7
|
+
data.tar.gz: 4b376eecb71182705d92c1c3eb10b2961a0cf88b4f774b59b787bbbb60b5b8d3a4cf242485911a944ed59c254a65a2350536ed80c73732bf04e759e290790d14
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_base0/core_ext'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module Tools
|
7
|
+
class Runner
|
8
|
+
class Instance < ::Avm::Instances::Runner
|
9
|
+
class Entry
|
10
|
+
runner_with :help, :output do
|
11
|
+
desc 'Retorna valor de uma entrada de instância AVM.'
|
12
|
+
bool_opt '-d', '--debug'
|
13
|
+
pos_arg :envvar_suffix, repeat: true
|
14
|
+
end
|
15
|
+
|
16
|
+
def run
|
17
|
+
debug
|
18
|
+
run_output
|
19
|
+
end
|
20
|
+
|
21
|
+
def output_content
|
22
|
+
parsed.envvar_suffix.map { |entry_key| "#{instance.entry(entry_key).value}\n" }.join
|
23
|
+
end
|
24
|
+
|
25
|
+
def debug
|
26
|
+
return unless parsed.debug?
|
27
|
+
|
28
|
+
parsed.envvar_suffix.map { |entry_key| debug_entry(entry_key) }
|
29
|
+
end
|
30
|
+
|
31
|
+
def debug_entry(entry_key)
|
32
|
+
infov 'Entry key', entry_key
|
33
|
+
e = instance.entry(entry_key)
|
34
|
+
infov ' * Type', e.class
|
35
|
+
infov ' * Full path', e.full_path
|
36
|
+
infov ' * Found?', e.context_found?
|
37
|
+
infov ' * Value', e.value
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
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.154.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-
|
11
|
+
date: 2023-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha-parsers
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.79'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
40
|
+
version: '0.79'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: avm-eac_ruby_base1
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -283,6 +283,7 @@ files:
|
|
283
283
|
- lib/avm/tools/runner/instance/data/unit/clear.rb
|
284
284
|
- lib/avm/tools/runner/instance/data/unit/dump.rb
|
285
285
|
- lib/avm/tools/runner/instance/data/unit/load.rb
|
286
|
+
- lib/avm/tools/runner/instance/entry.rb
|
286
287
|
- lib/avm/tools/runner/instance/info.rb
|
287
288
|
- lib/avm/tools/runner/launcher.rb
|
288
289
|
- lib/avm/tools/runner/launcher/instances.rb
|