eac_tools 0.15.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +12 -3
- data/lib/eac_tools/version.rb +1 -1
- data/sub/avm-eac_wordpress_base0/Gemfile +8 -0
- data/sub/avm-eac_wordpress_base0/avm-eac_wordpress_base0.gemspec +19 -0
- data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances/apache_host.rb +27 -0
- data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances/base.rb +26 -0
- data/sub/{avm-tools/lib/avm/eac_wordpress_base0 → avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances}/deploy.rb +3 -1
- data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances.rb +11 -0
- data/sub/{avm-tools/lib/avm/tools/runner/eac_wordpress_base0.rb → avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/runners/base.rb} +3 -4
- data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/runners.rb +11 -0
- data/sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/version.rb +7 -0
- data/sub/{avm-tools → avm-eac_wordpress_base0}/lib/avm/eac_wordpress_base0.rb +0 -0
- data/sub/{avm-tools/spec/lib/avm/eac_wordpress_base0 → avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances}/apache_host_spec.rb +4 -4
- data/sub/{avm-tools/spec/lib/avm/eac_wordpress_base0 → avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances}/apache_host_spec_no_ssl_content.conf +0 -0
- data/sub/avm-eac_wordpress_base0/spec/rubocop_spec.rb +3 -0
- data/sub/avm-eac_wordpress_base0/spec/spec_helper.rb +5 -0
- data/sub/{avm-tools → avm-eac_wordpress_base0}/template/avm/eac_wordpress_base0/deploy/wp-config.php.template +10 -10
- data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
- metadata +32 -11
- data/sub/avm-tools/lib/avm/eac_wordpress_base0/apache_host.rb +0 -25
- data/sub/avm-tools/lib/avm/eac_wordpress_base0/instance.rb +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 483fe35d1d7edbef046db2d18503575164208989b276d44207ef8931b4b43a39
|
4
|
+
data.tar.gz: 1955810083df4620b3b03228c68ebc7b9dfbd47403d0d318e5a3ebdef6f89ccc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff15828b3b75b1e625b80681bf3ef1bc5069e7e07d0a770c50e20b7e4b40132ebf322d63d75bfcf64041a336130e733fed0690c0445473ed1d80fbef6d6e964b
|
7
|
+
data.tar.gz: 193fd20c6f955468dec78935d3046dc312b6b454e1c6ec2760e516c637427b94d1c4413ef2255c41595b26eba3cc6824e490531619c040d6193a208dc73f42e7
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
eac_tools (0.
|
4
|
+
eac_tools (0.16.0)
|
5
5
|
avm-eac_asciidoctor_base0 (~> 0.4)
|
6
6
|
avm-eac_generic_base0 (~> 0.4)
|
7
7
|
avm-eac_rails_base0 (~> 0.6, >= 0.6.1)
|
@@ -10,7 +10,8 @@ PATH
|
|
10
10
|
avm-eac_redmine_plugin_base0 (~> 0.3)
|
11
11
|
avm-eac_ruby_base1 (~> 0.12)
|
12
12
|
avm-eac_webapp_base0 (~> 0.3, >= 0.3.1)
|
13
|
-
avm-
|
13
|
+
avm-eac_wordpress_base0 (~> 0.1)
|
14
|
+
avm-tools (~> 0.129)
|
14
15
|
eac_ruby_utils (~> 0.97)
|
15
16
|
|
16
17
|
PATH
|
@@ -84,10 +85,17 @@ PATH
|
|
84
85
|
avm-eac_ubuntu_base0 (~> 0.3)
|
85
86
|
eac_ruby_utils (~> 0.68)
|
86
87
|
|
88
|
+
PATH
|
89
|
+
remote: sub/avm-eac_wordpress_base0
|
90
|
+
specs:
|
91
|
+
avm-eac_wordpress_base0 (0.1.0)
|
92
|
+
avm-eac_webapp_base0 (~> 0.3, >= 0.3.1)
|
93
|
+
eac_ruby_utils (~> 0.97)
|
94
|
+
|
87
95
|
PATH
|
88
96
|
remote: sub/avm-tools
|
89
97
|
specs:
|
90
|
-
avm-tools (0.
|
98
|
+
avm-tools (0.129.0)
|
91
99
|
aranha-parsers (~> 0.4)
|
92
100
|
avm (~> 0.30)
|
93
101
|
avm-eac_ruby_base1 (~> 0.8)
|
@@ -327,6 +335,7 @@ DEPENDENCIES
|
|
327
335
|
avm-eac_redmine_plugin_base0!
|
328
336
|
avm-eac_ruby_base1!
|
329
337
|
avm-eac_webapp_base0!
|
338
|
+
avm-eac_wordpress_base0!
|
330
339
|
avm-tools!
|
331
340
|
eac_cli!
|
332
341
|
eac_config!
|
data/lib/eac_tools/version.rb
CHANGED
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
$LOAD_PATH.push File.expand_path('lib', __dir__)
|
4
|
+
|
5
|
+
require 'avm/eac_wordpress_base0/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = 'avm-eac_wordpress_base0'
|
9
|
+
s.version = Avm::EacWordpressBase0::VERSION
|
10
|
+
s.authors = ['Put here the authors']
|
11
|
+
s.summary = 'Put here de description.'
|
12
|
+
|
13
|
+
s.files = Dir['{lib,template}/**/*']
|
14
|
+
|
15
|
+
s.add_dependency 'avm-eac_webapp_base0', '~> 0.3', '>= 0.3.1'
|
16
|
+
s.add_dependency 'eac_ruby_utils', '~> 0.97'
|
17
|
+
|
18
|
+
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5', '>= 0.5.1'
|
19
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/eac_webapp_base0/apache_host'
|
4
|
+
|
5
|
+
module Avm
|
6
|
+
module EacWordpressBase0
|
7
|
+
module Instances
|
8
|
+
class ApacheHost < ::Avm::EacWebappBase0::ApacheHost
|
9
|
+
def document_root
|
10
|
+
instance.read_entry(::Avm::Instances::EntryKeys::FS_PATH)
|
11
|
+
end
|
12
|
+
|
13
|
+
def extra_content
|
14
|
+
"AssignUserID #{system_user} #{system_group}"
|
15
|
+
end
|
16
|
+
|
17
|
+
def system_user
|
18
|
+
instance.read_entry('system.username')
|
19
|
+
end
|
20
|
+
|
21
|
+
def system_group
|
22
|
+
instance.read_entry('system.groupname')
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'avm/instances/entry_keys'
|
4
|
+
require 'avm/eac_webapp_base0/instance'
|
5
|
+
|
6
|
+
module Avm
|
7
|
+
module EacWordpressBase0
|
8
|
+
module Instances
|
9
|
+
class Base < ::Avm::EacWebappBase0::Instance
|
10
|
+
FILES_UNITS = { uploads: 'wp-content/uploads', themes: 'wp-content/themes' }.freeze
|
11
|
+
|
12
|
+
def database_unit
|
13
|
+
web_url = read_entry(::Avm::Instances::EntryKeys::WEB_URL)
|
14
|
+
super.after_load do
|
15
|
+
info 'Fixing web addresses...'
|
16
|
+
run_sql(<<~SQL)
|
17
|
+
update wp_options
|
18
|
+
set option_value = '#{web_url}'
|
19
|
+
where option_name in ('siteurl', 'home')
|
20
|
+
SQL
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -1,13 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'avm/eac_webapp_base0/runner'
|
4
|
-
require 'avm/eac_wordpress_base0'
|
5
4
|
require 'eac_ruby_utils/core_ext'
|
6
5
|
|
7
6
|
module Avm
|
8
|
-
module
|
9
|
-
|
10
|
-
class
|
7
|
+
module EacWordpressBase0
|
8
|
+
module Runners
|
9
|
+
class Base < ::Avm::EacWebappBase0::Runner
|
11
10
|
require_sub __FILE__
|
12
11
|
end
|
13
12
|
end
|
File without changes
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'avm/eac_wordpress_base0/apache_host'
|
4
|
-
require 'avm/eac_wordpress_base0/
|
3
|
+
require 'avm/eac_wordpress_base0/instances/apache_host'
|
4
|
+
require 'avm/eac_wordpress_base0/instances/base'
|
5
5
|
|
6
|
-
RSpec.describe ::Avm::EacWordpressBase0::ApacheHost do
|
6
|
+
RSpec.describe ::Avm::EacWordpressBase0::Instances::ApacheHost do
|
7
7
|
describe '#no_ssl_site_content' do
|
8
|
-
let(:instance) { ::Avm::EacWordpressBase0::
|
8
|
+
let(:instance) { ::Avm::EacWordpressBase0::Instances::Base.by_id('stub-app_0') }
|
9
9
|
let(:apache_host) { described_class.new(instance) }
|
10
10
|
let(:expected_content) do
|
11
11
|
::File.read(::File.join(__dir__, 'apache_host_spec_no_ssl_content.conf'))
|
File without changes
|
@@ -20,22 +20,22 @@
|
|
20
20
|
|
21
21
|
// ** MySQL settings - You can get this info from your web host ** //
|
22
22
|
/** The name of the database for WordPress */
|
23
|
-
define(
|
23
|
+
define('DB_NAME', '%%DATABASE.NAME%%');
|
24
24
|
|
25
25
|
/** MySQL database username */
|
26
|
-
define(
|
26
|
+
define('DB_USER', '%%DATABASE.USER%%');
|
27
27
|
|
28
28
|
/** MySQL database password */
|
29
|
-
define(
|
29
|
+
define('DB_PASSWORD', '%%DATABASE.PASSWORD%%');
|
30
30
|
|
31
31
|
/** MySQL hostname */
|
32
|
-
define(
|
32
|
+
define('DB_HOST', 'localhost');
|
33
33
|
|
34
34
|
/** Database Charset to use in creating database tables. */
|
35
|
-
define(
|
35
|
+
define('DB_CHARSET', 'utf8');
|
36
36
|
|
37
37
|
/** The Database Collate type. Don't change this if in doubt. */
|
38
|
-
define(
|
38
|
+
define('DB_COLLATE', '');
|
39
39
|
|
40
40
|
/**#@+
|
41
41
|
* Authentication Unique Keys and Salts.
|
@@ -77,14 +77,14 @@ $table_prefix = 'wp_';
|
|
77
77
|
*
|
78
78
|
* @link https://codex.wordpress.org/Debugging_in_WordPress
|
79
79
|
*/
|
80
|
-
define(
|
80
|
+
define('WP_DEBUG', false);
|
81
81
|
|
82
82
|
/* That's all, stop editing! Happy publishing. */
|
83
83
|
|
84
84
|
/** Absolute path to the WordPress directory. */
|
85
|
-
if (
|
86
|
-
|
85
|
+
if (! defined('ABSPATH')) {
|
86
|
+
define('ABSPATH', dirname(__FILE__) . '/');
|
87
87
|
}
|
88
88
|
|
89
89
|
/** Sets up WordPress vars and included files. */
|
90
|
-
require_once(
|
90
|
+
require_once(ABSPATH . 'wp-settings.php');
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Put here the authors
|
@@ -140,20 +140,34 @@ dependencies:
|
|
140
140
|
- - ">="
|
141
141
|
- !ruby/object:Gem::Version
|
142
142
|
version: 0.3.1
|
143
|
+
- !ruby/object:Gem::Dependency
|
144
|
+
name: avm-eac_wordpress_base0
|
145
|
+
requirement: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - "~>"
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0.1'
|
150
|
+
type: :runtime
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
requirements:
|
154
|
+
- - "~>"
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: '0.1'
|
143
157
|
- !ruby/object:Gem::Dependency
|
144
158
|
name: avm-tools
|
145
159
|
requirement: !ruby/object:Gem::Requirement
|
146
160
|
requirements:
|
147
161
|
- - "~>"
|
148
162
|
- !ruby/object:Gem::Version
|
149
|
-
version: '0.
|
163
|
+
version: '0.129'
|
150
164
|
type: :runtime
|
151
165
|
prerelease: false
|
152
166
|
version_requirements: !ruby/object:Gem::Requirement
|
153
167
|
requirements:
|
154
168
|
- - "~>"
|
155
169
|
- !ruby/object:Gem::Version
|
156
|
-
version: '0.
|
170
|
+
version: '0.129'
|
157
171
|
- !ruby/object:Gem::Dependency
|
158
172
|
name: eac_ruby_utils
|
159
173
|
requirement: !ruby/object:Gem::Requirement
|
@@ -431,15 +445,26 @@ files:
|
|
431
445
|
- sub/avm-eac_webapp_base0/spec/spec_helper.rb
|
432
446
|
- sub/avm-eac_webapp_base0/template/avm/eac_webapp_base0/apache_host/no_ssl.conf
|
433
447
|
- sub/avm-eac_webapp_base0/template/avm/eac_webapp_base0/apache_path/default.conf
|
448
|
+
- sub/avm-eac_wordpress_base0/Gemfile
|
449
|
+
- sub/avm-eac_wordpress_base0/avm-eac_wordpress_base0.gemspec
|
450
|
+
- sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0.rb
|
451
|
+
- sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances.rb
|
452
|
+
- sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances/apache_host.rb
|
453
|
+
- sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances/base.rb
|
454
|
+
- sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/instances/deploy.rb
|
455
|
+
- sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/runners.rb
|
456
|
+
- sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/runners/base.rb
|
457
|
+
- sub/avm-eac_wordpress_base0/lib/avm/eac_wordpress_base0/version.rb
|
458
|
+
- sub/avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances/apache_host_spec.rb
|
459
|
+
- sub/avm-eac_wordpress_base0/spec/lib/avm/eac_wordpress_base0/instances/apache_host_spec_no_ssl_content.conf
|
460
|
+
- sub/avm-eac_wordpress_base0/spec/rubocop_spec.rb
|
461
|
+
- sub/avm-eac_wordpress_base0/spec/spec_helper.rb
|
462
|
+
- sub/avm-eac_wordpress_base0/template/avm/eac_wordpress_base0/deploy/wp-config.php.template
|
434
463
|
- sub/avm-tools/Gemfile
|
435
464
|
- sub/avm-tools/README.textile
|
436
465
|
- sub/avm-tools/avm-tools.gemspec
|
437
466
|
- sub/avm-tools/exe/avm
|
438
467
|
- sub/avm-tools/lib/avm.rb
|
439
|
-
- sub/avm-tools/lib/avm/eac_wordpress_base0.rb
|
440
|
-
- sub/avm-tools/lib/avm/eac_wordpress_base0/apache_host.rb
|
441
|
-
- sub/avm-tools/lib/avm/eac_wordpress_base0/deploy.rb
|
442
|
-
- sub/avm-tools/lib/avm/eac_wordpress_base0/instance.rb
|
443
468
|
- sub/avm-tools/lib/avm/eac_writings_base0.rb
|
444
469
|
- sub/avm-tools/lib/avm/eac_writings_base0/apache_host.rb
|
445
470
|
- sub/avm-tools/lib/avm/eac_writings_base0/commons.rb
|
@@ -544,7 +569,6 @@ files:
|
|
544
569
|
- sub/avm-tools/lib/avm/tools/runner/config.rb
|
545
570
|
- sub/avm-tools/lib/avm/tools/runner/config/load_path.rb
|
546
571
|
- sub/avm-tools/lib/avm/tools/runner/eac_webapp_base0.rb
|
547
|
-
- sub/avm-tools/lib/avm/tools/runner/eac_wordpress_base0.rb
|
548
572
|
- sub/avm-tools/lib/avm/tools/runner/eac_writings_base0.rb
|
549
573
|
- sub/avm-tools/lib/avm/tools/runner/files.rb
|
550
574
|
- sub/avm-tools/lib/avm/tools/runner/files/format.rb
|
@@ -584,8 +608,6 @@ files:
|
|
584
608
|
- sub/avm-tools/spec/dummy/ruby_gem_stub/lib/ruby_gem_stub.rb
|
585
609
|
- sub/avm-tools/spec/dummy/ruby_gem_stub/lib/ruby_gem_stub/version.rb
|
586
610
|
- sub/avm-tools/spec/dummy/ruby_gem_stub/ruby_gem_stub.gemspec
|
587
|
-
- sub/avm-tools/spec/lib/avm/eac_wordpress_base0/apache_host_spec.rb
|
588
|
-
- sub/avm-tools/spec/lib/avm/eac_wordpress_base0/apache_host_spec_no_ssl_content.conf
|
589
611
|
- sub/avm-tools/spec/lib/avm/launcher/context_spec.rb
|
590
612
|
- sub/avm-tools/spec/lib/avm/launcher/context_spec.yml
|
591
613
|
- sub/avm-tools/spec/lib/avm/launcher/git/base_spec.rb
|
@@ -1050,7 +1072,6 @@ files:
|
|
1050
1072
|
- sub/avm-tools/sub/eac_templates/spec/lib/object/template_spec_files/path/my_stub_with_template
|
1051
1073
|
- sub/avm-tools/sub/eac_templates/spec/rubocop_spec.rb
|
1052
1074
|
- sub/avm-tools/sub/eac_templates/spec/spec_helper.rb
|
1053
|
-
- sub/avm-tools/template/avm/eac_wordpress_base0/deploy/wp-config.php.template
|
1054
1075
|
- sub/avm-tools/template/avm/eac_writings_base0/commons/all.tex
|
1055
1076
|
- sub/avm-tools/template/avm/eac_writings_base0/commons/ebook.tex
|
1056
1077
|
- sub/avm-tools/template/avm/eac_writings_base0/commons/images.tex
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/eac_webapp_base0/apache_host'
|
4
|
-
|
5
|
-
module Avm
|
6
|
-
module EacWordpressBase0
|
7
|
-
class ApacheHost < ::Avm::EacWebappBase0::ApacheHost
|
8
|
-
def document_root
|
9
|
-
instance.read_entry(::Avm::Instances::EntryKeys::FS_PATH)
|
10
|
-
end
|
11
|
-
|
12
|
-
def extra_content
|
13
|
-
"AssignUserID #{system_user} #{system_group}"
|
14
|
-
end
|
15
|
-
|
16
|
-
def system_user
|
17
|
-
instance.read_entry('system.username')
|
18
|
-
end
|
19
|
-
|
20
|
-
def system_group
|
21
|
-
instance.read_entry('system.groupname')
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/instances/entry_keys'
|
4
|
-
require 'avm/eac_webapp_base0/instance'
|
5
|
-
|
6
|
-
module Avm
|
7
|
-
module EacWordpressBase0
|
8
|
-
class Instance < ::Avm::EacWebappBase0::Instance
|
9
|
-
FILES_UNITS = { uploads: 'wp-content/uploads', themes: 'wp-content/themes' }.freeze
|
10
|
-
|
11
|
-
def database_unit
|
12
|
-
web_url = read_entry(::Avm::Instances::EntryKeys::WEB_URL)
|
13
|
-
super.after_load do
|
14
|
-
info 'Fixing web addresses...'
|
15
|
-
run_sql(<<~SQL)
|
16
|
-
update wp_options
|
17
|
-
set option_value = '#{web_url}'
|
18
|
-
where option_name in ('siteurl', 'home')
|
19
|
-
SQL
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|