avm-tools 0.126.0 → 0.127.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: 5ca5230a46a057172eeb3466c0a663732ce38a3619ed6969629ed9f490ada86f
4
- data.tar.gz: fe8d5b1796b9d427ab3642607785e8eb911f81266295f35238858469a679394c
3
+ metadata.gz: 6e8d20e2a16533f12e2368cf501da49148ee2b03cbfb34c25fb6802a04c7b940
4
+ data.tar.gz: 1eced5352d28ec766276eaea52b26e5942599aa0de6ebc77502482d2d3159635
5
5
  SHA512:
6
- metadata.gz: abe3b7dbe5b630ff0fb2ac15e867139728d08aedc24df9f46401222b093ec2c7d948f0bced59cf99ff960aaa169e1b46f86344fc1ea86a9331d2af395ad3a43c
7
- data.tar.gz: b4334483e8cf90a20d72ebb3efc4c3fa35d83a8ccd37f3b03176ab640706b0ae61699d214c45bb010d7c76512ae1c52de06d3a584ca418281df43017ee0a3c35
6
+ metadata.gz: ae4de37a44d8bccc1227f6fdb9f40dda66d32b4fa83735925e0f993829201ca60a248c7b340c2538ec2c087d42de181e3b445d8ae0e97bbc8f6adb806bdb32db
7
+ data.tar.gz: d3e77aed040039d6858f56b14c05a4b3673b4335ee39e3d8dce449a440263a4194bf0d9b11c8a37396383b4c1f9bd98296183369df67f276b403c0d715ce4269
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/runners/base'
4
+ require 'eac_cli/core_ext'
5
+
6
+ module Avm
7
+ module Tools
8
+ class Runner
9
+ class SourceGenerate
10
+ runner_with :help do
11
+ pos_arg :stereotype_name
12
+ pos_arg :target_path
13
+ end
14
+
15
+ def run
16
+ start_banner
17
+ generate
18
+ end
19
+
20
+ def generate
21
+ infom 'Generating...'
22
+ generator.perform
23
+ success "Source generated in \"#{generator.target_path}\""
24
+ end
25
+
26
+ def start_banner
27
+ infov 'Stereotype', stereotype_name
28
+ infov 'Target path', target_path
29
+ infov 'Generator', generator.class
30
+ end
31
+
32
+ def generator_uncached
33
+ ::Avm::Registry.source_generators.detect_optional(stereotype_name, target_path) ||
34
+ fatal_error("No generator found for stereotype \"#{stereotype_name}\"")
35
+ end
36
+
37
+ delegate :stereotype_name, to: :parsed
38
+
39
+ def target_path
40
+ parsed.target_path.to_pathname
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.126.0'
5
+ VERSION = '0.127.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.126.0
4
+ version: 0.127.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: 2022-07-26 00:00:00.000000000 Z
11
+ date: 2022-07-27 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.27'
33
+ version: '0.30'
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.27'
40
+ version: '0.30'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: avm-eac_asciidoctor_base0
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -372,6 +372,7 @@ files:
372
372
  - lib/avm/tools/runner/self.rb
373
373
  - lib/avm/tools/runner/self/docker.rb
374
374
  - lib/avm/tools/runner/self/registry.rb
375
+ - lib/avm/tools/runner/source_generate.rb
375
376
  - lib/avm/tools/self.rb
376
377
  - lib/avm/tools/version.rb
377
378
  - locale/en.yml