avm-tools 0.155.0 → 0.156.0

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: b10be0d297c764a5017d6efeda6e2579d1c357b4f2aba4244945a71c6413cecd
4
- data.tar.gz: 04d00706c47e85dbd52d1b557d4f89b8b479929b8f5224f5285297998f5980c1
3
+ metadata.gz: f1ddfc0e5e306bcb7ffc23e5aaa2c97865a8ce6af60aff53f80bdbf86d5c5ca0
4
+ data.tar.gz: d986d24fa93a491c47e833d3c9a33d753e44ed8220c1f996f6698890ae0d5c1c
5
5
  SHA512:
6
- metadata.gz: 010b372df4847200c05968eb390013cadac7138372e73554d7086c435d9983687efc69d891eb6eed02d4c03793ba46135075987db8ea442422ea285d10e12b22
7
- data.tar.gz: f88f22d3bc4645de314c8e3c8eea6a1ec8752841e1bbdd0209228e5b33e54007ddbc875fc4b399009c25bae8f862021c571c26a6e21e21ebd2d985a22795ff0f
6
+ metadata.gz: 5d35d88959cb8a91a271a70bf89cca1ff170fdb99b1ea93a925a01aef491091bf045175143d476023dd69d1a6a6dc9812e87a032f1e7b9ac7c1d5ac0bfe5e980
7
+ data.tar.gz: eaa24d86a3888638e4af43518f17ab5c44c2c85fc5c524e36e1ef14e68c8aa9695900ef5bf53168e11af3d8ad3ec86e9c4d7d7ce6cc7f1ef90ccec6a3424014a
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/tools/core_ext'
4
+
5
+ module Avm
6
+ module Tools
7
+ class Runner
8
+ class Application
9
+ class Info
10
+ APPLICATION_PROPERTIES = {
11
+ id: 'ID',
12
+ name: 'Name',
13
+ organization: 'Organization'
14
+ }.freeze
15
+
16
+ runner_with :help, :output_item do
17
+ desc 'Show information about application.'
18
+ end
19
+
20
+ def run
21
+ run_output
22
+ end
23
+
24
+ # @return [Hash]
25
+ def item_hash
26
+ APPLICATION_PROPERTIES.inject({}) do |a, e|
27
+ a.merge(e.last => application.send(e.first).to_s)
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/registry'
4
+ require 'eac_ruby_base0/core_ext'
5
+
6
+ module Avm
7
+ module Tools
8
+ class Runner
9
+ class Application
10
+ runner_with :help, :subcommands do
11
+ pos_arg :application_id
12
+ subcommands
13
+ end
14
+ for_context :application
15
+
16
+ private
17
+
18
+ def application_uncached
19
+ ::Avm::Registry.applications.detect(parsed.application_id)
20
+ end
21
+
22
+ require_sub __FILE__
23
+ end
24
+ end
25
+ end
26
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.155.0'
5
+ VERSION = '0.156.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.155.0
4
+ version: 0.156.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-10-15 00:00:00.000000000 Z
11
+ date: 2023-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -30,34 +30,34 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.79'
33
+ version: '0.80'
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.79'
40
+ version: '0.80'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: avm-eac_ruby_base1
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.31'
47
+ version: '0.32'
48
48
  - - ">="
49
49
  - !ruby/object:Gem::Version
50
- version: 0.31.2
50
+ version: 0.32.1
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
55
  - - "~>"
56
56
  - !ruby/object:Gem::Version
57
- version: '0.31'
57
+ version: '0.32'
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: 0.31.2
60
+ version: 0.32.1
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: avm-eac_ubuntu_base0
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -255,6 +255,8 @@ files:
255
255
  - lib/avm/tools.rb
256
256
  - lib/avm/tools/core_ext.rb
257
257
  - lib/avm/tools/runner.rb
258
+ - lib/avm/tools/runner/application.rb
259
+ - lib/avm/tools/runner/application/info.rb
258
260
  - lib/avm/tools/runner/application_stereotypes.rb
259
261
  - lib/avm/tools/runner/application_stereotypes/list.rb
260
262
  - lib/avm/tools/runner/applications.rb