avm-eac_rails_base1 0.9.0 → 0.9.2

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: 4ff046884551d61af480d8a559348da242cee21f0061fe1ef5a9e5bac21ea497
4
- data.tar.gz: 543eb765fef5728f7ef63b1ff03390d2e871766436cff4a8f70f0dc2d4b2743b
3
+ metadata.gz: 44bd60430af2018d072326d284befadd7022ac9c51e720e9ef375a5e7607f9c5
4
+ data.tar.gz: caf451a1f3215879822f4f3de788e070466c8fc5484418d55eb69030d00b67fd
5
5
  SHA512:
6
- metadata.gz: d02cfce2e5a2e0616210b10917fe58654215912ef915e511afa72d99352208caef10b238ee2d2ff24a4421a002d567a2cfebbae27d565ed57ab7365a52f625ff
7
- data.tar.gz: 97e5627fe198de027e64ab50b0d1d71f68a3d9a72456482a4ce26d2822f6ea0e44b48f1541e70ed2d3dbbc4985058fd6ec34e6e7f5e9aea510dfbcfe7ada000e
6
+ metadata.gz: 69df9fea3e920273b6b6c0738dc483f01d7506d328b5595d0715c0e47745eddd1be01e18afb8d55dfb411fa8af385de712dd91488a21940aa7714ac2fa947d21
7
+ data.tar.gz: c9a4cbdb329800cb040a6247f1888ccfdaf71604339abdadb3e2c5de2e10e9037ebe2d0aced093dc6549586b7c32df23e5792a9d71e3f875b528bee8449513eb
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module EacRailsBase1
7
+ module Instances
8
+ module ApacheBase
9
+ # @return [String]
10
+ def document_root
11
+ ::File.join(super, 'public')
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
@@ -1,14 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'avm/eac_rails_base1/instances/apache_base'
3
4
  require 'avm/eac_webapp_base0/instances/apache_host'
4
5
 
5
6
  module Avm
6
7
  module EacRailsBase1
7
8
  module Instances
8
9
  class ApacheHost < ::Avm::EacWebappBase0::Instances::ApacheHost
9
- def document_root
10
- "#{instance.read_entry(::Avm::Instances::EntryKeys::INSTALL_PATH)}/public"
11
- end
10
+ prepend ::Avm::EacRailsBase1::Instances::ApacheBase
12
11
 
13
12
  def extra_content
14
13
  'PassengerEnabled On'
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/eac_rails_base1/instances/apache_base'
4
+ require 'avm/eac_webapp_base0/instances/apache_path'
5
+ require 'eac_templates/core_ext'
6
+
7
+ module Avm
8
+ module EacRailsBase1
9
+ module Instances
10
+ class ApachePath < ::Avm::EacWebappBase0::Instances::ApachePath
11
+ prepend ::Avm::EacRailsBase1::Instances::ApacheBase
12
+
13
+ # @return [String]
14
+ def extra_content
15
+ ::Avm::EacRailsBase1::Instances::ApachePath.template.child('extra_content.conf')
16
+ .apply(instance)
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'avm/eac_rails_base1/instances/apache_host'
4
+ require 'avm/eac_rails_base1/instances/apache_path'
3
5
  require 'avm/eac_rails_base1/instances/processes/tasks_scheduler'
4
6
  require 'avm/eac_rails_base1/instances/runners'
5
7
  require 'avm/eac_ruby_base1/instances/mixin'
@@ -23,6 +23,10 @@ module Avm
23
23
  daemon_command(:start).system!
24
24
  end
25
25
 
26
+ def enabled?
27
+ daemon_command(:status).execute.fetch(:exit_code).zero?
28
+ end
29
+
26
30
  private
27
31
 
28
32
  def daemon_command(action)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacRailsBase1
5
- VERSION = '0.9.0'
5
+ VERSION = '0.9.2'
6
6
  end
7
7
  end
@@ -0,0 +1,5 @@
1
+ <Location "%%WEB.PATH%%">
2
+ PassengerBaseURI "%%WEB.PATH%%"
3
+ PassengerAppRoot "%%INSTALL.PATH%%"
4
+ PassengerAppEnv production
5
+ </Location>
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.9.0
4
+ version: 0.9.2
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-06-04 00:00:00.000000000 Z
11
+ date: 2023-07-08 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.77'
19
+ version: '0.79'
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.77'
26
+ version: '0.79'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: avm-eac_ruby_base1
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -51,6 +51,9 @@ dependencies:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0.18'
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 0.18.2
54
57
  type: :runtime
55
58
  prerelease: false
56
59
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,26 +61,29 @@ dependencies:
58
61
  - - "~>"
59
62
  - !ruby/object:Gem::Version
60
63
  version: '0.18'
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 0.18.2
61
67
  - !ruby/object:Gem::Dependency
62
68
  name: eac_ruby_utils
63
69
  requirement: !ruby/object:Gem::Requirement
64
70
  requirements:
65
71
  - - "~>"
66
72
  - !ruby/object:Gem::Version
67
- version: '0.117'
73
+ version: '0.119'
68
74
  - - ">="
69
75
  - !ruby/object:Gem::Version
70
- version: 0.117.1
76
+ version: 0.119.1
71
77
  type: :runtime
72
78
  prerelease: false
73
79
  version_requirements: !ruby/object:Gem::Requirement
74
80
  requirements:
75
81
  - - "~>"
76
82
  - !ruby/object:Gem::Version
77
- version: '0.117'
83
+ version: '0.119'
78
84
  - - ">="
79
85
  - !ruby/object:Gem::Version
80
- version: 0.117.1
86
+ version: 0.119.1
81
87
  - !ruby/object:Gem::Dependency
82
88
  name: eac_ruby_gem_support
83
89
  requirement: !ruby/object:Gem::Requirement
@@ -100,7 +106,9 @@ extra_rdoc_files: []
100
106
  files:
101
107
  - lib/avm/eac_rails_base1.rb
102
108
  - lib/avm/eac_rails_base1/instances.rb
109
+ - lib/avm/eac_rails_base1/instances/apache_base.rb
103
110
  - lib/avm/eac_rails_base1/instances/apache_host.rb
111
+ - lib/avm/eac_rails_base1/instances/apache_path.rb
104
112
  - lib/avm/eac_rails_base1/instances/base.rb
105
113
  - lib/avm/eac_rails_base1/instances/processes.rb
106
114
  - lib/avm/eac_rails_base1/instances/processes/daemon.rb
@@ -121,6 +129,7 @@ files:
121
129
  - lib/avm/eac_rails_base1/runner_with/rails_environment.rb
122
130
  - lib/avm/eac_rails_base1/sources/base.rb
123
131
  - lib/avm/eac_rails_base1/version.rb
132
+ - template/avm/eac_rails_base1/instances/apache_path/extra_content.conf
124
133
  - template/avm/eac_rails_base1/instances/systemd_unit/tasks_scheduler.service
125
134
  - template/avm/eac_rails_base1/instances/systemd_unit/tasks_scheduler_command.sh
126
135
  homepage: