avm-tools 0.128.0 → 0.129.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/avm/tools/version.rb +1 -1
- metadata +1 -7
- data/lib/avm/eac_wordpress_base0/apache_host.rb +0 -25
- data/lib/avm/eac_wordpress_base0/deploy.rb +0 -10
- data/lib/avm/eac_wordpress_base0/instance.rb +0 -24
- data/lib/avm/eac_wordpress_base0.rb +0 -9
- data/lib/avm/tools/runner/eac_wordpress_base0.rb +0 -15
- data/template/avm/eac_wordpress_base0/deploy/wp-config.php.template +0 -90
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13289ba2478f5a9021fbdee9cc58c8bb60f21f422b1dba4d04142585ec0617f4
|
4
|
+
data.tar.gz: cc996031a9af437291d47931d8f96f91c4bdf21d3ead9d3beb75df28b541e057
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e54e4bce526bead624b2ce78780a1227a254676323ce5d2eaa6d17a1852cb6ece000205d9d65406db859839613df870161cfd8322933c01620cafbf2ac14ee7
|
7
|
+
data.tar.gz: a764d26c324c0621e96ded2ec32aa3263be949f8257a1f099d36b172d20352ace8e43da3311cb9459f2b8ae741556b9770e6a7c45ecb01070cdf3f207b1235ca
|
data/lib/avm/tools/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avm-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.129.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
@@ -212,10 +212,6 @@ files:
|
|
212
212
|
- Gemfile
|
213
213
|
- exe/avm
|
214
214
|
- lib/avm.rb
|
215
|
-
- lib/avm/eac_wordpress_base0.rb
|
216
|
-
- lib/avm/eac_wordpress_base0/apache_host.rb
|
217
|
-
- lib/avm/eac_wordpress_base0/deploy.rb
|
218
|
-
- lib/avm/eac_wordpress_base0/instance.rb
|
219
215
|
- lib/avm/eac_writings_base0.rb
|
220
216
|
- lib/avm/eac_writings_base0/apache_host.rb
|
221
217
|
- lib/avm/eac_writings_base0/commons.rb
|
@@ -320,7 +316,6 @@ files:
|
|
320
316
|
- lib/avm/tools/runner/config.rb
|
321
317
|
- lib/avm/tools/runner/config/load_path.rb
|
322
318
|
- lib/avm/tools/runner/eac_webapp_base0.rb
|
323
|
-
- lib/avm/tools/runner/eac_wordpress_base0.rb
|
324
319
|
- lib/avm/tools/runner/eac_writings_base0.rb
|
325
320
|
- lib/avm/tools/runner/files.rb
|
326
321
|
- lib/avm/tools/runner/files/format.rb
|
@@ -742,7 +737,6 @@ files:
|
|
742
737
|
- sub/eac_templates/spec/lib/object/template_spec_files/path/my_stub_with_template
|
743
738
|
- sub/eac_templates/spec/rubocop_spec.rb
|
744
739
|
- sub/eac_templates/spec/spec_helper.rb
|
745
|
-
- template/avm/eac_wordpress_base0/deploy/wp-config.php.template
|
746
740
|
- template/avm/eac_writings_base0/commons/all.tex
|
747
741
|
- template/avm/eac_writings_base0/commons/ebook.tex
|
748
742
|
- 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
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'avm/eac_webapp_base0/runner'
|
4
|
-
require 'avm/eac_wordpress_base0'
|
5
|
-
require 'eac_ruby_utils/core_ext'
|
6
|
-
|
7
|
-
module Avm
|
8
|
-
module Tools
|
9
|
-
class Runner
|
10
|
-
class EacWordpressBase0 < ::Avm::EacWebappBase0::Runner
|
11
|
-
require_sub __FILE__
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
@@ -1,90 +0,0 @@
|
|
1
|
-
<?php
|
2
|
-
/**
|
3
|
-
* The base configuration for WordPress
|
4
|
-
*
|
5
|
-
* The wp-config.php creation script uses this file during the
|
6
|
-
* installation. You don't have to use the web site, you can
|
7
|
-
* copy this file to "wp-config.php" and fill in the values.
|
8
|
-
*
|
9
|
-
* This file contains the following configurations:
|
10
|
-
*
|
11
|
-
* * MySQL settings
|
12
|
-
* * Secret keys
|
13
|
-
* * Database table prefix
|
14
|
-
* * ABSPATH
|
15
|
-
*
|
16
|
-
* @link https://codex.wordpress.org/Editing_wp-config.php
|
17
|
-
*
|
18
|
-
* @package WordPress
|
19
|
-
*/
|
20
|
-
|
21
|
-
// ** MySQL settings - You can get this info from your web host ** //
|
22
|
-
/** The name of the database for WordPress */
|
23
|
-
define( 'DB_NAME', '%%DATABASE.NAME%%' );
|
24
|
-
|
25
|
-
/** MySQL database username */
|
26
|
-
define( 'DB_USER', '%%DATABASE.USER%%' );
|
27
|
-
|
28
|
-
/** MySQL database password */
|
29
|
-
define( 'DB_PASSWORD', '%%DATABASE.PASSWORD%%' );
|
30
|
-
|
31
|
-
/** MySQL hostname */
|
32
|
-
define( 'DB_HOST', 'localhost' );
|
33
|
-
|
34
|
-
/** Database Charset to use in creating database tables. */
|
35
|
-
define( 'DB_CHARSET', 'utf8' );
|
36
|
-
|
37
|
-
/** The Database Collate type. Don't change this if in doubt. */
|
38
|
-
define( 'DB_COLLATE', '' );
|
39
|
-
|
40
|
-
/**#@+
|
41
|
-
* Authentication Unique Keys and Salts.
|
42
|
-
*
|
43
|
-
* Change these to different unique phrases!
|
44
|
-
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service
|
45
|
-
} * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
|
46
|
-
*
|
47
|
-
* @since 2.6.0
|
48
|
-
*/
|
49
|
-
define('AUTH_KEY', '%%AUTH_KEY%%');
|
50
|
-
define('SECURE_AUTH_KEY', '%%SECURE_AUTH_KEY%%');
|
51
|
-
define('LOGGED_IN_KEY', '%%LOGGED_IN_KEY%%');
|
52
|
-
define('NONCE_KEY', '%%NONCE_KEY%%');
|
53
|
-
define('AUTH_SALT', '%%AUTH_SALT%%');
|
54
|
-
define('SECURE_AUTH_SALT', '%%SECURE_AUTH_SALT%%');
|
55
|
-
define('LOGGED_IN_SALT', '%%LOGGED_IN_SALT%%');
|
56
|
-
define('NONCE_SALT', '%%NONCE_SALT%%');
|
57
|
-
|
58
|
-
/**#@-*/
|
59
|
-
|
60
|
-
/**
|
61
|
-
* WordPress Database Table prefix.
|
62
|
-
*
|
63
|
-
* You can have multiple installations in one database if you give each
|
64
|
-
* a unique prefix. Only numbers, letters, and underscores please!
|
65
|
-
*/
|
66
|
-
$table_prefix = 'wp_';
|
67
|
-
|
68
|
-
/**
|
69
|
-
* For developers: WordPress debugging mode.
|
70
|
-
*
|
71
|
-
* Change this to true to enable the display of notices during development.
|
72
|
-
* It is strongly recommended that plugin and theme developers use WP_DEBUG
|
73
|
-
* in their development environments.
|
74
|
-
*
|
75
|
-
* For information on other constants that can be used for debugging,
|
76
|
-
* visit the Codex.
|
77
|
-
*
|
78
|
-
* @link https://codex.wordpress.org/Debugging_in_WordPress
|
79
|
-
*/
|
80
|
-
define( 'WP_DEBUG', false );
|
81
|
-
|
82
|
-
/* That's all, stop editing! Happy publishing. */
|
83
|
-
|
84
|
-
/** Absolute path to the WordPress directory. */
|
85
|
-
if ( ! defined( 'ABSPATH' ) ) {
|
86
|
-
define( 'ABSPATH', dirname( __FILE__ ) . '/' );
|
87
|
-
}
|
88
|
-
|
89
|
-
/** Sets up WordPress vars and included files. */
|
90
|
-
require_once( ABSPATH . 'wp-settings.php' );
|