avm-eac_rails_base1 0.8.4 → 0.9.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 +6 -0
- data/lib/avm/eac_rails_base1/instances/processes/daemon.rb +35 -0
- data/lib/avm/eac_rails_base1/instances/processes/tasks_scheduler.rb +27 -0
- data/lib/avm/eac_rails_base1/instances/processes.rb +13 -0
- data/lib/avm/eac_rails_base1/version.rb +1 -1
- metadata +19 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ff046884551d61af480d8a559348da242cee21f0061fe1ef5a9e5bac21ea497
|
4
|
+
data.tar.gz: 543eb765fef5728f7ef63b1ff03390d2e871766436cff4a8f70f0dc2d4b2743b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d02cfce2e5a2e0616210b10917fe58654215912ef915e511afa72d99352208caef10b238ee2d2ff24a4421a002d567a2cfebbae27d565ed57ab7365a52f625ff
|
7
|
+
data.tar.gz: 97e5627fe198de027e64ab50b0d1d71f68a3d9a72456482a4ce26d2822f6ea0e44b48f1541e70ed2d3dbbc4985058fd6ec34e6e7f5e9aea510dfbcfe7ada000e
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'avm/eac_rails_base1/instances/processes/tasks_scheduler'
|
3
4
|
require 'avm/eac_rails_base1/instances/runners'
|
4
5
|
require 'avm/eac_ruby_base1/instances/mixin'
|
5
6
|
require 'avm/eac_ruby_base1/sources/base'
|
@@ -22,6 +23,11 @@ module Avm
|
|
22
23
|
super.add_unit('database', database_unit)
|
23
24
|
end
|
24
25
|
|
26
|
+
# @return [Array<Avm::Instances::Process>]
|
27
|
+
def processes
|
28
|
+
super + [::Avm::EacRailsBase1::Instances::Processes::TasksScheduler.new(self)]
|
29
|
+
end
|
30
|
+
|
25
31
|
def rake(*args)
|
26
32
|
bundle('exec', 'rake', *args)
|
27
33
|
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/instances/process'
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module EacRailsBase1
|
8
|
+
module Instances
|
9
|
+
module Processes
|
10
|
+
class Daemon < ::Avm::Instances::Process
|
11
|
+
acts_as_abstract :command_name, :gem_name
|
12
|
+
|
13
|
+
# @return [Boolean]
|
14
|
+
def available?
|
15
|
+
instance.the_gem.gemfile_lock_gem_version(gem_name).present?
|
16
|
+
end
|
17
|
+
|
18
|
+
def disable
|
19
|
+
daemon_command(:stop).system!
|
20
|
+
end
|
21
|
+
|
22
|
+
def enable
|
23
|
+
daemon_command(:start).system!
|
24
|
+
end
|
25
|
+
|
26
|
+
private
|
27
|
+
|
28
|
+
def daemon_command(action)
|
29
|
+
instance.bundle('exec', command_name, action)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_rails_base1/instances/processes/daemon'
|
4
|
+
require 'eac_ruby_utils/core_ext'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module EacRailsBase1
|
8
|
+
module Instances
|
9
|
+
module Processes
|
10
|
+
class TasksScheduler < ::Avm::EacRailsBase1::Instances::Processes::Daemon
|
11
|
+
GEM_NAME = 'tasks_scheduler'
|
12
|
+
COMMAND_NAME = 'tasks_scheduler'
|
13
|
+
|
14
|
+
# @return [String]
|
15
|
+
def command_name
|
16
|
+
COMMAND_NAME
|
17
|
+
end
|
18
|
+
|
19
|
+
# @return [String]
|
20
|
+
def gem_name
|
21
|
+
GEM_NAME
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
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.9.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-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.77'
|
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.77'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: avm-eac_ruby_base1
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: '0.30'
|
34
34
|
- - ">="
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 0.30.
|
36
|
+
version: 0.30.3
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -43,41 +43,41 @@ dependencies:
|
|
43
43
|
version: '0.30'
|
44
44
|
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 0.30.
|
46
|
+
version: 0.30.3
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: avm-eac_webapp_base0
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0.
|
54
|
-
- - ">="
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version: 0.15.1
|
53
|
+
version: '0.18'
|
57
54
|
type: :runtime
|
58
55
|
prerelease: false
|
59
56
|
version_requirements: !ruby/object:Gem::Requirement
|
60
57
|
requirements:
|
61
58
|
- - "~>"
|
62
59
|
- !ruby/object:Gem::Version
|
63
|
-
version: '0.
|
64
|
-
- - ">="
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version: 0.15.1
|
60
|
+
version: '0.18'
|
67
61
|
- !ruby/object:Gem::Dependency
|
68
62
|
name: eac_ruby_utils
|
69
63
|
requirement: !ruby/object:Gem::Requirement
|
70
64
|
requirements:
|
71
65
|
- - "~>"
|
72
66
|
- !ruby/object:Gem::Version
|
73
|
-
version: '0.
|
67
|
+
version: '0.117'
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 0.117.1
|
74
71
|
type: :runtime
|
75
72
|
prerelease: false
|
76
73
|
version_requirements: !ruby/object:Gem::Requirement
|
77
74
|
requirements:
|
78
75
|
- - "~>"
|
79
76
|
- !ruby/object:Gem::Version
|
80
|
-
version: '0.
|
77
|
+
version: '0.117'
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: 0.117.1
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: eac_ruby_gem_support
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -102,6 +102,9 @@ files:
|
|
102
102
|
- lib/avm/eac_rails_base1/instances.rb
|
103
103
|
- lib/avm/eac_rails_base1/instances/apache_host.rb
|
104
104
|
- lib/avm/eac_rails_base1/instances/base.rb
|
105
|
+
- lib/avm/eac_rails_base1/instances/processes.rb
|
106
|
+
- lib/avm/eac_rails_base1/instances/processes/daemon.rb
|
107
|
+
- lib/avm/eac_rails_base1/instances/processes/tasks_scheduler.rb
|
105
108
|
- lib/avm/eac_rails_base1/instances/runners.rb
|
106
109
|
- lib/avm/eac_rails_base1/instances/runners/bundle.rb
|
107
110
|
- lib/avm/eac_rails_base1/instances/runners/code_runner.rb
|