avm-tools 0.45.0 → 0.46.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avm/stereotypes/eac_webapp_base0/instance.rb +3 -3
  3. data/lib/avm/tools/runner/launcher.rb +12 -0
  4. data/lib/avm/tools/version.rb +1 -1
  5. data/lib/eac_launcher.rb +17 -0
  6. data/lib/eac_launcher/context.rb +81 -0
  7. data/lib/eac_launcher/context/instance_discovery.rb +54 -0
  8. data/lib/eac_launcher/context/instance_manager.rb +94 -0
  9. data/lib/eac_launcher/context/settings.rb +51 -0
  10. data/lib/eac_launcher/git.rb +7 -0
  11. data/lib/eac_launcher/git/base.rb +94 -0
  12. data/lib/eac_launcher/git/base/_remotes.rb +36 -0
  13. data/lib/eac_launcher/git/base/subrepo.rb +42 -0
  14. data/lib/eac_launcher/git/base/underlying.rb +49 -0
  15. data/lib/eac_launcher/git/error.rb +11 -0
  16. data/lib/eac_launcher/git/mirror_update.rb +36 -0
  17. data/lib/eac_launcher/git/publish_base.rb +118 -0
  18. data/lib/eac_launcher/git/remote.rb +53 -0
  19. data/lib/eac_launcher/git/sub_warp_base.rb +30 -0
  20. data/lib/eac_launcher/git/warp_base.rb +54 -0
  21. data/lib/eac_launcher/instances.rb +6 -0
  22. data/lib/eac_launcher/instances/base.rb +91 -0
  23. data/lib/eac_launcher/instances/base/cache.rb +41 -0
  24. data/lib/eac_launcher/instances/error.rb +8 -0
  25. data/lib/eac_launcher/instances/runner_helper.rb +42 -0
  26. data/lib/eac_launcher/instances/settings.rb +23 -0
  27. data/lib/eac_launcher/paths.rb +4 -0
  28. data/lib/eac_launcher/paths/logical.rb +80 -0
  29. data/lib/eac_launcher/paths/real.rb +42 -0
  30. data/lib/eac_launcher/project.rb +16 -0
  31. data/lib/eac_launcher/publish.rb +4 -0
  32. data/lib/eac_launcher/publish/base.rb +45 -0
  33. data/lib/eac_launcher/publish/check_result.rb +65 -0
  34. data/lib/eac_launcher/ruby.rb +3 -0
  35. data/lib/eac_launcher/ruby/gem.rb +4 -0
  36. data/lib/eac_launcher/ruby/gem/build.rb +123 -0
  37. data/lib/eac_launcher/ruby/gem/specification.rb +61 -0
  38. data/lib/eac_launcher/runner.rb +21 -0
  39. data/lib/eac_launcher/runner/instances.rb +41 -0
  40. data/lib/eac_launcher/runner/projects.rb +46 -0
  41. data/lib/eac_launcher/runner/publish.rb +59 -0
  42. data/lib/eac_launcher/stereotype.rb +52 -0
  43. data/lib/eac_launcher/stereotypes.rb +14 -0
  44. data/lib/eac_launcher/stereotypes/git.rb +21 -0
  45. data/lib/eac_launcher/stereotypes/git/publish.rb +13 -0
  46. data/lib/eac_launcher/stereotypes/git/warp.rb +25 -0
  47. data/lib/eac_launcher/stereotypes/git_subrepo.rb +30 -0
  48. data/lib/eac_launcher/stereotypes/git_subrepo/publish.rb +12 -0
  49. data/lib/eac_launcher/stereotypes/git_subrepo/warp.rb +85 -0
  50. data/lib/eac_launcher/stereotypes/git_subtree.rb +47 -0
  51. data/lib/eac_launcher/stereotypes/git_subtree/publish.rb +10 -0
  52. data/lib/eac_launcher/stereotypes/git_subtree/warp.rb +27 -0
  53. data/lib/eac_launcher/stereotypes/rails.rb +21 -0
  54. data/lib/eac_launcher/stereotypes/redmine_plugin.rb +21 -0
  55. data/lib/eac_launcher/stereotypes/ruby_gem.rb +27 -0
  56. data/lib/eac_launcher/stereotypes/ruby_gem/publish.rb +127 -0
  57. data/lib/eac_launcher/vendor.rb +3 -0
  58. data/lib/eac_launcher/vendor/github.rb +18 -0
  59. data/lib/eac_launcher/version.rb +5 -0
  60. metadata +101 -5
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_launcher/vendor/github'
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EacLauncher
4
+ module Vendor
5
+ module Github
6
+ class << self
7
+ def to_ssh_url(url)
8
+ return nil if url.blank?
9
+
10
+ url_no_dot_git = url.gsub(/\.git\z/, '')
11
+
12
+ m = %r{\Ahttps://github.com/([^/]+)/([^/]+)\z}.match(url_no_dot_git.to_s)
13
+ m ? "git@github.com:#{m[1]}/#{m[2]}.git" : url
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EacLauncher
4
+ VERSION = '0.8.0'
5
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avm-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.45.0
4
+ version: 0.46.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
@@ -59,19 +59,19 @@ dependencies:
59
59
  - !ruby/object:Gem::Version
60
60
  version: 0.0.1
61
61
  - !ruby/object:Gem::Dependency
62
- name: eac_launcher
62
+ name: curb
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '0.8'
67
+ version: 0.9.10
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '0.8'
74
+ version: 0.9.10
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: eac_ruby_gem_support
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -82,7 +82,7 @@ dependencies:
82
82
  - - ">="
83
83
  - !ruby/object:Gem::Version
84
84
  version: 0.1.1
85
- type: :runtime
85
+ type: :development
86
86
  prerelease: false
87
87
  version_requirements: !ruby/object:Gem::Requirement
88
88
  requirements:
@@ -113,6 +113,9 @@ dependencies:
113
113
  - - "~>"
114
114
  - !ruby/object:Gem::Version
115
115
  version: '0.32'
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: 0.32.1
116
119
  type: :runtime
117
120
  prerelease: false
118
121
  version_requirements: !ruby/object:Gem::Requirement
@@ -120,6 +123,9 @@ dependencies:
120
123
  - - "~>"
121
124
  - !ruby/object:Gem::Version
122
125
  version: '0.32'
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ version: 0.32.1
123
129
  - !ruby/object:Gem::Dependency
124
130
  name: filesize
125
131
  requirement: !ruby/object:Gem::Requirement
@@ -134,6 +140,20 @@ dependencies:
134
140
  - - ">="
135
141
  - !ruby/object:Gem::Version
136
142
  version: '0'
143
+ - !ruby/object:Gem::Dependency
144
+ name: git
145
+ requirement: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - "~>"
148
+ - !ruby/object:Gem::Version
149
+ version: '1.7'
150
+ type: :runtime
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - "~>"
155
+ - !ruby/object:Gem::Version
156
+ version: '1.7'
137
157
  - !ruby/object:Gem::Dependency
138
158
  name: htmlbeautifier
139
159
  requirement: !ruby/object:Gem::Requirement
@@ -168,6 +188,26 @@ dependencies:
168
188
  - - ">="
169
189
  - !ruby/object:Gem::Version
170
190
  version: '0'
191
+ - !ruby/object:Gem::Dependency
192
+ name: ruby-progressbar
193
+ requirement: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - "~>"
196
+ - !ruby/object:Gem::Version
197
+ version: '1.10'
198
+ - - ">="
199
+ - !ruby/object:Gem::Version
200
+ version: 1.10.1
201
+ type: :runtime
202
+ prerelease: false
203
+ version_requirements: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - "~>"
206
+ - !ruby/object:Gem::Version
207
+ version: '1.10'
208
+ - - ">="
209
+ - !ruby/object:Gem::Version
210
+ version: 1.10.1
171
211
  description:
172
212
  email:
173
213
  executables:
@@ -320,11 +360,67 @@ files:
320
360
  - lib/avm/tools/runner/git/dirty_files.rb
321
361
  - lib/avm/tools/runner/git/issue.rb
322
362
  - lib/avm/tools/runner/git/revisions_test.rb
363
+ - lib/avm/tools/runner/launcher.rb
323
364
  - lib/avm/tools/runner/ruby.rb
324
365
  - lib/avm/tools/runner/ruby/rubocop.rb
325
366
  - lib/avm/tools/runner/self.rb
326
367
  - lib/avm/tools/runner/self/docker.rb
327
368
  - lib/avm/tools/version.rb
369
+ - lib/eac_launcher.rb
370
+ - lib/eac_launcher/context.rb
371
+ - lib/eac_launcher/context/instance_discovery.rb
372
+ - lib/eac_launcher/context/instance_manager.rb
373
+ - lib/eac_launcher/context/settings.rb
374
+ - lib/eac_launcher/git.rb
375
+ - lib/eac_launcher/git/base.rb
376
+ - lib/eac_launcher/git/base/_remotes.rb
377
+ - lib/eac_launcher/git/base/subrepo.rb
378
+ - lib/eac_launcher/git/base/underlying.rb
379
+ - lib/eac_launcher/git/error.rb
380
+ - lib/eac_launcher/git/mirror_update.rb
381
+ - lib/eac_launcher/git/publish_base.rb
382
+ - lib/eac_launcher/git/remote.rb
383
+ - lib/eac_launcher/git/sub_warp_base.rb
384
+ - lib/eac_launcher/git/warp_base.rb
385
+ - lib/eac_launcher/instances.rb
386
+ - lib/eac_launcher/instances/base.rb
387
+ - lib/eac_launcher/instances/base/cache.rb
388
+ - lib/eac_launcher/instances/error.rb
389
+ - lib/eac_launcher/instances/runner_helper.rb
390
+ - lib/eac_launcher/instances/settings.rb
391
+ - lib/eac_launcher/paths.rb
392
+ - lib/eac_launcher/paths/logical.rb
393
+ - lib/eac_launcher/paths/real.rb
394
+ - lib/eac_launcher/project.rb
395
+ - lib/eac_launcher/publish.rb
396
+ - lib/eac_launcher/publish/base.rb
397
+ - lib/eac_launcher/publish/check_result.rb
398
+ - lib/eac_launcher/ruby.rb
399
+ - lib/eac_launcher/ruby/gem.rb
400
+ - lib/eac_launcher/ruby/gem/build.rb
401
+ - lib/eac_launcher/ruby/gem/specification.rb
402
+ - lib/eac_launcher/runner.rb
403
+ - lib/eac_launcher/runner/instances.rb
404
+ - lib/eac_launcher/runner/projects.rb
405
+ - lib/eac_launcher/runner/publish.rb
406
+ - lib/eac_launcher/stereotype.rb
407
+ - lib/eac_launcher/stereotypes.rb
408
+ - lib/eac_launcher/stereotypes/git.rb
409
+ - lib/eac_launcher/stereotypes/git/publish.rb
410
+ - lib/eac_launcher/stereotypes/git/warp.rb
411
+ - lib/eac_launcher/stereotypes/git_subrepo.rb
412
+ - lib/eac_launcher/stereotypes/git_subrepo/publish.rb
413
+ - lib/eac_launcher/stereotypes/git_subrepo/warp.rb
414
+ - lib/eac_launcher/stereotypes/git_subtree.rb
415
+ - lib/eac_launcher/stereotypes/git_subtree/publish.rb
416
+ - lib/eac_launcher/stereotypes/git_subtree/warp.rb
417
+ - lib/eac_launcher/stereotypes/rails.rb
418
+ - lib/eac_launcher/stereotypes/redmine_plugin.rb
419
+ - lib/eac_launcher/stereotypes/ruby_gem.rb
420
+ - lib/eac_launcher/stereotypes/ruby_gem/publish.rb
421
+ - lib/eac_launcher/vendor.rb
422
+ - lib/eac_launcher/vendor/github.rb
423
+ - lib/eac_launcher/version.rb
328
424
  - template/avm/self/docker_image/Dockerfile
329
425
  - template/avm/self/docker_image/entrypoint.sh
330
426
  - template/avm/stereotypes/eac_rails_base0/deploy/config/database.yml.template