avm-eac_wordpress_base0 0.3.0 → 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: 06465b01ae6349abc603ef6ea78463e3780f40d27dcdfa1b23890e0344131197
4
- data.tar.gz: 59178e8df9f84443a87c7925289da36f4ea3334e93e9e0f1aafee9bfb485709c
3
+ metadata.gz: e8322a517c19c4dd7eb9ca64dc4b5c0b43aaadf4777f409f7e5c23fd02b443a4
4
+ data.tar.gz: 7089e15f3666eea0a155b45514629cefb497787d8dbf50577d97250abf513e9d
5
5
  SHA512:
6
- metadata.gz: 8de74862887f2306072bcdc60132f0d14fd132df9003b0876f307140423d16d434348a0d31aa64d63c8fdb16803325b2fe22189560f2d3e67a1e668a9176e3bc
7
- data.tar.gz: a885f618b84514942078888fd0594f24ec6756c26536b75b847d3fdaf48393114b5faf474ebabd0be7b676b8e38148bca510ec4c68243289888d9d074dc09de0
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.3.0'
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.3.0
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-12-10 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.57'
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.57'
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.13'
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.13'
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.109'
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.109'
54
+ version: '0.112'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: eac_ruby_gem_support
57
57
  requirement: !ruby/object:Gem::Requirement