avm-eac_wordpress_base0 0.3.0 → 0.3.2
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_wordpress_base0/instances/base.rb +20 -2
- data/lib/avm/eac_wordpress_base0/version.rb +1 -1
- metadata +23 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9132555ceadd4009cf9e3887ce70d7e1bdcf0ad314e6ace2a2714857931e9bb7
|
4
|
+
data.tar.gz: f27988c14c89f50d7194edd622b0381c7634649f8088d354d4b9419127a6fda3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10efd4e2fde7f6c10153501041ae3707b8fa906d4f233ca924b845d1daf440c8cd556e707e7995ba7a75a51509f234b4ea2fb99fc14800becb8657b3a08ea7a3
|
7
|
+
data.tar.gz: 3e09e3dd86d41a573116b5ef675af296a996076b493ab70325ab6c40e49e9a6e65de7589ec8c235fa291f3abb8632386ffed6aeddd9d9cd51e83fc617c271678
|
@@ -7,19 +7,37 @@ module Avm
|
|
7
7
|
module EacWordpressBase0
|
8
8
|
module Instances
|
9
9
|
class Base < ::Avm::EacWebappBase0::Instances::Base
|
10
|
-
|
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)
|
14
22
|
super.after_load do
|
15
23
|
info 'Fixing web addresses...'
|
16
|
-
run_sql(<<~SQL)
|
24
|
+
run_sql(<<~SQL.squish)
|
17
25
|
update wp_options
|
18
26
|
set option_value = '#{web_url}'
|
19
27
|
where option_name in ('siteurl', 'home')
|
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
|
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.
|
4
|
+
version: 0.3.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:
|
11
|
+
date: 2024-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm
|
@@ -16,62 +16,68 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.86'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.86.2
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
29
|
+
version: '0.86'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.86.2
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: avm-eac_webapp_base0
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - "~>"
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
39
|
+
version: '0.18'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 0.18.4
|
34
43
|
type: :runtime
|
35
44
|
prerelease: false
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
38
47
|
- - "~>"
|
39
48
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
49
|
+
version: '0.18'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 0.18.4
|
41
53
|
- !ruby/object:Gem::Dependency
|
42
54
|
name: eac_ruby_utils
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
44
56
|
requirements:
|
45
57
|
- - "~>"
|
46
58
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
59
|
+
version: '0.121'
|
48
60
|
type: :runtime
|
49
61
|
prerelease: false
|
50
62
|
version_requirements: !ruby/object:Gem::Requirement
|
51
63
|
requirements:
|
52
64
|
- - "~>"
|
53
65
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
66
|
+
version: '0.121'
|
55
67
|
- !ruby/object:Gem::Dependency
|
56
68
|
name: eac_ruby_gem_support
|
57
69
|
requirement: !ruby/object:Gem::Requirement
|
58
70
|
requirements:
|
59
71
|
- - "~>"
|
60
72
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0.
|
62
|
-
- - ">="
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version: 0.5.1
|
73
|
+
version: '0.10'
|
65
74
|
type: :development
|
66
75
|
prerelease: false
|
67
76
|
version_requirements: !ruby/object:Gem::Requirement
|
68
77
|
requirements:
|
69
78
|
- - "~>"
|
70
79
|
- !ruby/object:Gem::Version
|
71
|
-
version: '0.
|
72
|
-
- - ">="
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: 0.5.1
|
80
|
+
version: '0.10'
|
75
81
|
description:
|
76
82
|
email:
|
77
83
|
executables: []
|
@@ -96,7 +102,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
96
102
|
requirements:
|
97
103
|
- - ">="
|
98
104
|
- !ruby/object:Gem::Version
|
99
|
-
version: '
|
105
|
+
version: '2.7'
|
100
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
107
|
requirements:
|
102
108
|
- - ">="
|