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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c3e4f132b4dc06b40e68473f774ccac26e4465e7ec786341cec7343217df546
4
- data.tar.gz: bb960d0332e0403c2e256e59e0ec75093181be97ece5d1eb5217030ca03af9a9
3
+ metadata.gz: 52c59965a5479bfb942ba27eee544059b02acdc43c68051d09e63b0e6ee07ef7
4
+ data.tar.gz: 19798b01a4c984c367cb88916510d8209a5123c39c082d591d05eaf99cd2eafd
5
5
  SHA512:
6
- metadata.gz: 9c2d30fe14255eeeaeb42cc4137acdc63bc4adba1ffac7a16f6c6c214efe2984e5c449ad040ea9ee2ede8ad3bb96777901e2fa05684b151efb0f688be52a5da2
7
- data.tar.gz: 812f9b4e0a76f14c7d977d932148c2871f84b46c3e5c12661a0cbf35248eae81f633965ba0350b7a8aa7f55ad1c46a1242ed6a72a896d12f9a410573fd5ba24b
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.152.0'
5
+ VERSION = '0.154.0'
6
6
  end
7
7
  end
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.152.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-06-27 00:00:00.000000000 Z
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.78'
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.78'
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