avm-eac_rails_base1 0.9.3 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avm/eac_rails_base1/instances/base.rb +5 -0
- data/lib/avm/eac_rails_base1/instances/deploy.rb +23 -0
- data/lib/avm/eac_rails_base1/instances/runners/tasks_scheduler/systemd_unit.rb +1 -1
- data/lib/avm/eac_rails_base1/runner_with/rails_environment.rb +2 -2
- data/lib/avm/eac_rails_base1/version.rb +1 -1
- metadata +12 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea11b3b756160ac0bf2eea44544165fa39c4522b145582765159c5207d10ef38
|
4
|
+
data.tar.gz: 0ef0373f4c1a01e533bc90d469c0cdfdf3874ef92622432a5632424e2cb9a317
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2be41dcc72702b25f57d625b83dd446b7b7255708b8ff3d17b307c4c49dfbb0f2c57742e982e3013cf8e248e0accddb18dfbf1b70fc211364233263675f4313
|
7
|
+
data.tar.gz: a71973828fd9d7ee8f697a9a2417d6c041c6086304657107ed3ae0de8ac56dd5e44b38a893d654c1e05cf190c500b6e9582fc4c6e9feaa82e4e58c6f19155563
|
@@ -25,6 +25,11 @@ module Avm
|
|
25
25
|
super.add_unit('database', database_unit)
|
26
26
|
end
|
27
27
|
|
28
|
+
# @return [Addressable::URI]
|
29
|
+
def gemfile_source
|
30
|
+
application.local_source.gemfile_source
|
31
|
+
end
|
32
|
+
|
28
33
|
# @return [Array<Avm::Instances::Process>]
|
29
34
|
def processes
|
30
35
|
super + [::Avm::EacRailsBase1::Instances::Processes::TasksScheduler.new(self)]
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_envs/http/request'
|
4
|
+
require 'avm/eac_webapp_base0/instances/deploy'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module EacRailsBase1
|
8
|
+
module Instances
|
9
|
+
class Deploy < ::Avm::EacWebappBase0::Instances::Deploy
|
10
|
+
set_callback :write_on_target, :before do
|
11
|
+
check_rubygems_access
|
12
|
+
end
|
13
|
+
|
14
|
+
# @return [void]
|
15
|
+
# @raise [EacEnvs::Http::Error]
|
16
|
+
def check_rubygems_access
|
17
|
+
infom "Checkin access to gems provider (\"#{instance.gemfile_source}\")..."
|
18
|
+
::EacEnvs::Http::Request.new.url(instance.gemfile_source).response.body_data_or_raise
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -13,7 +13,7 @@ module Avm
|
|
13
13
|
|
14
14
|
runner_with :help do
|
15
15
|
desc 'Configure Systemd unit for instace\'s tasks scheduler daemon (Reference: ' \
|
16
|
-
|
16
|
+
'https://www.freedesktop.org/software/systemd/man/systemd.service.html).'
|
17
17
|
bool_opt '-e', '--exec-run', 'Run daemon with "run" instead of "start"/"stop".'
|
18
18
|
arg_opt '-r', '--restart', 'Value for systemd.service, Restart=.',
|
19
19
|
default: DEFAULT_RESTART
|
@@ -13,8 +13,8 @@ module Avm
|
|
13
13
|
include ::EacCli::Runner
|
14
14
|
|
15
15
|
runner_definition do
|
16
|
-
arg_opt '-e', '--environment', 'Specifies the environment for the runner to operate' \
|
17
|
-
|
16
|
+
arg_opt '-e', '--environment', 'Specifies the environment for the runner to operate ' \
|
17
|
+
'(test/development/production). Default: "development".'
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avm-eac_rails_base1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Put here the authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm
|
@@ -16,34 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.81'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.81'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: avm-eac_ruby_base1
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
34
|
-
- - ">="
|
35
|
-
- !ruby/object:Gem::Version
|
36
|
-
version: 0.31.1
|
33
|
+
version: '0.33'
|
37
34
|
type: :runtime
|
38
35
|
prerelease: false
|
39
36
|
version_requirements: !ruby/object:Gem::Requirement
|
40
37
|
requirements:
|
41
38
|
- - "~>"
|
42
39
|
- !ruby/object:Gem::Version
|
43
|
-
version: '0.
|
44
|
-
- - ">="
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: 0.31.1
|
40
|
+
version: '0.33'
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
42
|
name: avm-eac_webapp_base0
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,7 +67,7 @@ dependencies:
|
|
73
67
|
version: '0.119'
|
74
68
|
- - ">="
|
75
69
|
- !ruby/object:Gem::Version
|
76
|
-
version: 0.119.
|
70
|
+
version: 0.119.2
|
77
71
|
type: :runtime
|
78
72
|
prerelease: false
|
79
73
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -83,21 +77,21 @@ dependencies:
|
|
83
77
|
version: '0.119'
|
84
78
|
- - ">="
|
85
79
|
- !ruby/object:Gem::Version
|
86
|
-
version: 0.119.
|
80
|
+
version: 0.119.2
|
87
81
|
- !ruby/object:Gem::Dependency
|
88
82
|
name: eac_ruby_gem_support
|
89
83
|
requirement: !ruby/object:Gem::Requirement
|
90
84
|
requirements:
|
91
85
|
- - "~>"
|
92
86
|
- !ruby/object:Gem::Version
|
93
|
-
version: 0.
|
87
|
+
version: '0.9'
|
94
88
|
type: :development
|
95
89
|
prerelease: false
|
96
90
|
version_requirements: !ruby/object:Gem::Requirement
|
97
91
|
requirements:
|
98
92
|
- - "~>"
|
99
93
|
- !ruby/object:Gem::Version
|
100
|
-
version: 0.
|
94
|
+
version: '0.9'
|
101
95
|
description:
|
102
96
|
email:
|
103
97
|
executables: []
|
@@ -110,6 +104,7 @@ files:
|
|
110
104
|
- lib/avm/eac_rails_base1/instances/apache_host.rb
|
111
105
|
- lib/avm/eac_rails_base1/instances/apache_path.rb
|
112
106
|
- lib/avm/eac_rails_base1/instances/base.rb
|
107
|
+
- lib/avm/eac_rails_base1/instances/deploy.rb
|
113
108
|
- lib/avm/eac_rails_base1/instances/processes.rb
|
114
109
|
- lib/avm/eac_rails_base1/instances/processes/daemon.rb
|
115
110
|
- lib/avm/eac_rails_base1/instances/processes/tasks_scheduler.rb
|
@@ -143,7 +138,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
143
138
|
requirements:
|
144
139
|
- - ">="
|
145
140
|
- !ruby/object:Gem::Version
|
146
|
-
version: '
|
141
|
+
version: '2.7'
|
147
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
143
|
requirements:
|
149
144
|
- - ">="
|