avm-eac_wordpress_base0 0.2.1 → 0.3.1

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: f0dad9efbdd50d095332173d901e56037779c85b3405d2c362ba6f1325380c97
4
- data.tar.gz: 319e326ab871172a762c2caff8c0c5730b21bb02e76fe703deffbf5268d042fd
3
+ metadata.gz: e8322a517c19c4dd7eb9ca64dc4b5c0b43aaadf4777f409f7e5c23fd02b443a4
4
+ data.tar.gz: 7089e15f3666eea0a155b45514629cefb497787d8dbf50577d97250abf513e9d
5
5
  SHA512:
6
- metadata.gz: 75d14d23e1334745a5f15ec153d840d42486c5eb24bdd7cc6dba5e23271ddee236cbd34dd0c7647cae5ef9c476dcbf13435b83c236ee3954c2a44641cc1e1ac3
7
- data.tar.gz: 3b4e6192e5304784bf2797f8a7eb9a04dbbaea32be7a3f6c377fc3d25637d6bd2ad350fd8851616e5fcc85df1919aae876408df0069833b85a66f306f09c3bf3
6
+ metadata.gz: dc9aae07811a1f508e4bcade751ba7df44faee7989460b3c62944caa9400a4ea976e9ce705e9fd849ee2487127c8ee9f1a8e4156ecd6325b67c47a0b0e08ae8c
7
+ data.tar.gz: 54bc985dcbcea01ea7e2f347ca3206780cefb943d7c96eff8c4b9d71e6da7d94fe6b51b4f4c371fd3b049ddfba85d9477e89d220d03d50151ba3979963ec1883
@@ -7,7 +7,15 @@ module Avm
7
7
  module EacWordpressBase0
8
8
  module Instances
9
9
  class Base < ::Avm::EacWebappBase0::Instances::Base
10
- FILES_UNITS = { uploads: 'wp-content/uploads', themes: 'wp-content/themes' }.freeze
10
+ THEMES_UNIT_SUBPATH = 'wp-content/themes'
11
+ UPLOADS_UNIT_SUBPATH = 'wp-content/uploads'
12
+
13
+ # @return [Avm::Instances::Data::Package]
14
+ def data_package_create
15
+ %w[database themes uploads].inject(super) do |a, e|
16
+ a.add_unit(e, send("#{e}_unit"))
17
+ end
18
+ end
11
19
 
12
20
  def database_unit
13
21
  web_url = read_entry(::Avm::Instances::EntryKeys::WEB_URL)
@@ -20,6 +28,16 @@ module Avm
20
28
  SQL
21
29
  end
22
30
  end
31
+
32
+ # @return [Avm::Instances::Data::FilesUnit]
33
+ def themes_unit
34
+ ::Avm::Instances::Data::FilesUnit.new(self, THEMES_UNIT_SUBPATH)
35
+ end
36
+
37
+ # @return [Avm::Instances::Data::FilesUnit]
38
+ def uploads_unit
39
+ ::Avm::Instances::Data::FilesUnit.new(self, UPLOADS_UNIT_SUBPATH)
40
+ end
23
41
  end
24
42
  end
25
43
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacWordpressBase0
5
- VERSION = '0.2.1'
5
+ VERSION = '0.3.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avm-eac_wordpress_base0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.1
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: 2022-09-25 00:00:00.000000000 Z
11
+ date: 2023-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.45'
19
+ version: '0.67'
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.45'
26
+ version: '0.67'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: avm-eac_webapp_base0
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.9'
33
+ version: '0.15'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.9'
40
+ version: '0.15'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: eac_ruby_utils
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.104'
47
+ version: '0.112'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.104'
54
+ version: '0.112'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: eac_ruby_gem_support
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -83,8 +83,6 @@ files:
83
83
  - lib/avm/eac_wordpress_base0/instances/apache_host.rb
84
84
  - lib/avm/eac_wordpress_base0/instances/base.rb
85
85
  - lib/avm/eac_wordpress_base0/instances/deploy.rb
86
- - lib/avm/eac_wordpress_base0/runners.rb
87
- - lib/avm/eac_wordpress_base0/runners/base.rb
88
86
  - lib/avm/eac_wordpress_base0/version.rb
89
87
  - template/avm/eac_wordpress_base0/deploy/wp-config.php.template
90
88
  homepage:
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'avm/eac_webapp_base0/runner'
4
- require 'eac_ruby_utils/core_ext'
5
-
6
- module Avm
7
- module EacWordpressBase0
8
- module Runners
9
- class Base < ::Avm::EacWebappBase0::Runner
10
- require_sub __FILE__
11
- end
12
- end
13
- end
14
- end
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Avm
6
- module EacWordpressBase0
7
- module Runners
8
- require_sub __FILE__
9
- end
10
- end
11
- end