avm-tools 0.99.0 → 0.99.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avm/app_src.rb +4 -4
- data/lib/avm/eac_webapp_base0/deploy.rb +1 -1
- data/lib/avm/eac_webapp_base0/deploy/git_info.rb +1 -1
- data/lib/avm/git/commit/file.rb +1 -1
- data/lib/avm/git/issue/complete.rb +2 -2
- data/lib/avm/git/subrepo_check.rb +1 -1
- data/lib/avm/git/subrepo_check/show_result.rb +1 -1
- data/lib/avm/git/subrepo_checks.rb +1 -1
- data/lib/avm/launcher/context.rb +83 -0
- data/lib/avm/launcher/context/instance_discovery.rb +56 -0
- data/lib/avm/launcher/context/instance_manager.rb +3 -3
- data/lib/avm/launcher/context/instance_manager/cached_instance.rb +1 -1
- data/lib/avm/launcher/context/settings.rb +53 -0
- data/lib/avm/launcher/git.rb +7 -0
- data/lib/avm/launcher/git/base.rb +86 -0
- data/lib/avm/launcher/git/base/class_methods.rb +28 -0
- data/lib/avm/launcher/git/base/dirty_files.rb +23 -0
- data/lib/avm/launcher/git/base/remotes.rb +40 -0
- data/lib/avm/launcher/git/base/subrepo.rb +44 -0
- data/lib/avm/launcher/git/base/underlying.rb +63 -0
- data/lib/avm/launcher/git/error.rb +13 -0
- data/lib/avm/launcher/git/mirror_update.rb +38 -0
- data/lib/avm/launcher/git/publish_base.rb +121 -0
- data/lib/avm/launcher/git/remote.rb +55 -0
- data/lib/avm/launcher/git/sub_warp_base.rb +33 -0
- data/lib/avm/launcher/git/warp_base.rb +56 -0
- data/lib/{eac_launcher → avm/launcher}/instances.rb +1 -1
- data/lib/avm/launcher/instances/base.rb +3 -3
- data/lib/avm/launcher/instances/base/cache.rb +1 -1
- data/lib/avm/launcher/instances/runner_helper.rb +1 -1
- data/lib/avm/launcher/paths.rb +4 -0
- data/lib/avm/launcher/paths/logical.rb +82 -0
- data/lib/avm/launcher/paths/real.rb +44 -0
- data/lib/avm/launcher/project.rb +18 -0
- data/lib/avm/launcher/publish.rb +4 -0
- data/lib/avm/launcher/publish/base.rb +47 -0
- data/lib/avm/launcher/publish/check_result.rb +67 -0
- data/lib/avm/launcher/ruby.rb +3 -0
- data/lib/avm/launcher/ruby/gem.rb +4 -0
- data/lib/avm/launcher/ruby/gem/build.rb +125 -0
- data/lib/avm/launcher/ruby/gem/specification.rb +63 -0
- data/lib/avm/launcher/vendor.rb +3 -0
- data/lib/avm/launcher/vendor/github.rb +20 -0
- data/lib/avm/projects/stereotypes/git/publish.rb +2 -2
- data/lib/avm/projects/stereotypes/git/update/subrepo.rb +2 -2
- data/lib/avm/projects/stereotypes/git/warp.rb +2 -2
- data/lib/avm/projects/stereotypes/git_subrepo.rb +2 -2
- data/lib/avm/projects/stereotypes/git_subrepo/publish.rb +2 -2
- data/lib/avm/projects/stereotypes/git_subrepo/warp.rb +11 -11
- data/lib/avm/projects/stereotypes/git_subtree/publish.rb +2 -2
- data/lib/avm/projects/stereotypes/git_subtree/warp.rb +4 -4
- data/lib/avm/projects/stereotypes/ruby_gem.rb +2 -2
- data/lib/avm/projects/stereotypes/ruby_gem/publish.rb +11 -11
- data/lib/avm/tools/runner/files/format.rb +2 -2
- data/lib/avm/tools/runner/git.rb +2 -2
- data/lib/avm/tools/runner/git/commit.rb +2 -2
- data/lib/avm/tools/runner/git/deploy.rb +2 -2
- data/lib/avm/tools/runner/launcher/instances.rb +1 -1
- data/lib/avm/tools/runner/launcher/projects.rb +3 -3
- data/lib/avm/tools/runner/launcher/publish.rb +2 -2
- data/lib/avm/tools/version.rb +1 -1
- metadata +32 -34
- data/lib/eac_launcher.rb +0 -13
- data/lib/eac_launcher/context.rb +0 -81
- data/lib/eac_launcher/context/instance_discovery.rb +0 -54
- data/lib/eac_launcher/context/settings.rb +0 -51
- data/lib/eac_launcher/git.rb +0 -7
- data/lib/eac_launcher/git/base.rb +0 -84
- data/lib/eac_launcher/git/base/class_methods.rb +0 -26
- data/lib/eac_launcher/git/base/dirty_files.rb +0 -21
- data/lib/eac_launcher/git/base/remotes.rb +0 -38
- data/lib/eac_launcher/git/base/subrepo.rb +0 -42
- data/lib/eac_launcher/git/base/underlying.rb +0 -61
- data/lib/eac_launcher/git/error.rb +0 -11
- data/lib/eac_launcher/git/mirror_update.rb +0 -36
- data/lib/eac_launcher/git/publish_base.rb +0 -119
- data/lib/eac_launcher/git/remote.rb +0 -53
- data/lib/eac_launcher/git/sub_warp_base.rb +0 -31
- data/lib/eac_launcher/git/warp_base.rb +0 -54
- data/lib/eac_launcher/paths.rb +0 -4
- data/lib/eac_launcher/paths/logical.rb +0 -80
- data/lib/eac_launcher/paths/real.rb +0 -42
- data/lib/eac_launcher/project.rb +0 -16
- data/lib/eac_launcher/publish.rb +0 -4
- data/lib/eac_launcher/publish/base.rb +0 -45
- data/lib/eac_launcher/publish/check_result.rb +0 -65
- data/lib/eac_launcher/ruby.rb +0 -3
- data/lib/eac_launcher/ruby/gem.rb +0 -4
- data/lib/eac_launcher/ruby/gem/build.rb +0 -123
- data/lib/eac_launcher/ruby/gem/specification.rb +0 -61
- data/lib/eac_launcher/vendor.rb +0 -3
- data/lib/eac_launcher/vendor/github.rb +0 -18
- data/lib/eac_launcher/version.rb +0 -5
@@ -1,61 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'active_support/core_ext/object'
|
4
|
-
|
5
|
-
module EacLauncher
|
6
|
-
module Ruby
|
7
|
-
module Gem
|
8
|
-
class Specification
|
9
|
-
class << self
|
10
|
-
def parse_version_file(file)
|
11
|
-
s = ::File.read(file)
|
12
|
-
m = /VERSION\s*=\s*[\'\"]([^\'\"]+)[\'\"]/.match(s)
|
13
|
-
m ? m[1] : nil
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
attr_reader :gemspec_file
|
18
|
-
|
19
|
-
def initialize(gemspec_file)
|
20
|
-
@gemspec_file = gemspec_file
|
21
|
-
end
|
22
|
-
|
23
|
-
def version
|
24
|
-
v = self.class.parse_version_file(version_file)
|
25
|
-
return v if v.present?
|
26
|
-
|
27
|
-
raise "Version not found on file \"#{version_file}\""
|
28
|
-
end
|
29
|
-
|
30
|
-
def name
|
31
|
-
::File.basename(gemspec_file).gsub(/\.gemspec\z/, '')
|
32
|
-
end
|
33
|
-
|
34
|
-
def full_name
|
35
|
-
"#{name}-#{version}"
|
36
|
-
end
|
37
|
-
|
38
|
-
def to_s
|
39
|
-
full_name
|
40
|
-
end
|
41
|
-
|
42
|
-
private
|
43
|
-
|
44
|
-
def gem_root
|
45
|
-
::File.dirname(gemspec_file)
|
46
|
-
end
|
47
|
-
|
48
|
-
def version_file
|
49
|
-
f = ::File.join(gem_root, 'lib', *namespace_parts, 'version.rb')
|
50
|
-
return f if ::File.exist?(f)
|
51
|
-
|
52
|
-
raise "Version file \"#{f}\" does not exist"
|
53
|
-
end
|
54
|
-
|
55
|
-
def namespace_parts
|
56
|
-
name.split('-')
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
data/lib/eac_launcher/vendor.rb
DELETED
@@ -1,18 +0,0 @@
|
|
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
|