avm-tools 0.155.0 → 0.157.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: b10be0d297c764a5017d6efeda6e2579d1c357b4f2aba4244945a71c6413cecd
4
- data.tar.gz: 04d00706c47e85dbd52d1b557d4f89b8b479929b8f5224f5285297998f5980c1
3
+ metadata.gz: b17709dfb92fc9ea3fdfb7297fe85421b8915ef41c0195d4655426a94c5960b5
4
+ data.tar.gz: 4748780047a978ae996af04995903e6109ce37e13087bf2e4a98f9446d04f16c
5
5
  SHA512:
6
- metadata.gz: 010b372df4847200c05968eb390013cadac7138372e73554d7086c435d9983687efc69d891eb6eed02d4c03793ba46135075987db8ea442422ea285d10e12b22
7
- data.tar.gz: f88f22d3bc4645de314c8e3c8eea6a1ec8752841e1bbdd0209228e5b33e54007ddbc875fc4b399009c25bae8f862021c571c26a6e21e21ebd2d985a22795ff0f
6
+ metadata.gz: '0478d3d36fb1d41e89cbb646ce530be880438d36798745ff70c3ee0fc6d97a0c9986386663630fef8a4fc884b5db6e5d9d05e8e3adc0da15f59496a62dbf5345'
7
+ data.tar.gz: 6bf15fa661e6e9d7ba033d6a943d0aeee51646544a68d44c55086ef9fd3a84040bdd27467196ea92b17b20f7168522931c699485e370023ce66575bb9c45f668
@@ -0,0 +1,35 @@
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
+ scm: 'SCM'
15
+ }.freeze
16
+
17
+ runner_with :help, :output_item do
18
+ desc 'Show information about application.'
19
+ end
20
+
21
+ def run
22
+ run_output
23
+ end
24
+
25
+ # @return [Hash]
26
+ def item_hash
27
+ APPLICATION_PROPERTIES.inject({}) do |a, e|
28
+ a.merge(e.last => application.send(e.first).to_s)
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
35
+ 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.157.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.157.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-31 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.81'
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.81'
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