wp-capistrano3 0.0.19 → 0.0.23
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ca168db5f7da9071aeed62dc11988a90d2b17184703982f36603cca8c866de4
|
4
|
+
data.tar.gz: 2db592a3e816a82a8370da759935dd5a675c471a9eae8ca71dc78240fc73f2d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4257b40f9f7f1c4fb34141efa9bc66fdedb419a5a7da81efba1c47fb7543054b307b142e63af578706fd0937c42fe7d995f1fea210592b5d5f7f7cf5f7b8a3c0
|
7
|
+
data.tar.gz: afcbabfb6c5231075fed2ddbf5193290a47e81b5f62b480b1173b0bda4fb396af2c9f70318d5ad3535475d870c9bc6ca8a9405d56817c25f60fd94395f944a6c
|
@@ -3,7 +3,7 @@ namespace "wp-capistrano" do
|
|
3
3
|
task :download_wordpress do
|
4
4
|
on roles(:app) do
|
5
5
|
execute "wget -N http://wordpress.org/latest.tar.gz -P #{fetch(:tmp_dir)}"
|
6
|
-
execute "tar xzf /
|
6
|
+
execute "tar xzf #{fetch(:tmp_dir)}/latest.tar.gz -C #{release_path} wordpress --strip-components=1"
|
7
7
|
execute "wget -N https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -P #{fetch(:tmp_dir)}"
|
8
8
|
execute "chmod u+x #{fetch(:tmp_dir)}/wp-cli.phar"
|
9
9
|
end
|
@@ -2,9 +2,11 @@ namespace "wp-capistrano" do
|
|
2
2
|
desc 'Install wordpress'
|
3
3
|
task :install_wordpress do
|
4
4
|
on roles(:app), filter: :no_release do
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
puts "#{fetch(:shared_directory)}/wp-config.php exist ?"
|
6
|
+
if (File.exist?("#{fetch(:shared_directory)}/wp-config.php") == false)
|
7
|
+
execute "php #{fetch(:tmp_dir)}/wp-cli.phar config create --dbname=#{fetch(:wp_db_name)} --dbuser=#{fetch(:wp_db_user)} --dbpass=#{fetch(:wp_db_password)} --dbhost='#{fetch(:wp_db_host)}' --locale=#{fetch(:wp_locale)} --path=#{release_path}"
|
8
|
+
execute "cp #{release_path}/wp-config.php #{shared_path}/"
|
9
|
+
end
|
8
10
|
execute "php #{fetch(:tmp_dir)}/wp-cli.phar core install --url='#{fetch(:wp_url)}' --title='#{fetch(:wp_title)}' --admin_user='#{fetch(:wp_admin_user)}' --admin_password='#{fetch(:wp_admin_password)}' --admin_email='#{fetch(:wp_admin_email)}' --skip-email --path=#{release_path}"
|
9
11
|
end
|
10
12
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# Default Flow
|
2
|
-
before 'deploy:check:linked_files', 'wp-capistrano:create_wp_config'
|
2
|
+
#before 'deploy:check:linked_files', 'wp-capistrano:create_wp_config'
|
3
3
|
before 'deploy:updating', 'wp-capistrano:download_wordpress'
|
4
4
|
after 'wp-capistrano:download_wordpress', 'wp-capistrano:install_wordpress'
|
5
5
|
after 'wp-capistrano:install_plugins', 'wp-capistrano:update_wordpress'
|
@@ -1,4 +1,4 @@
|
|
1
|
-
load File.expand_path("../tasks/create_wp_config.rake", __FILE__)
|
1
|
+
#load File.expand_path("../tasks/create_wp_config.rake", __FILE__)
|
2
2
|
load File.expand_path("../tasks/download_wordpress.rake", __FILE__)
|
3
3
|
load File.expand_path("../tasks/install_wordpress.rake", __FILE__)
|
4
4
|
load File.expand_path("../tasks/update_wordpress.rake", __FILE__)
|
data/wp-capistrano.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'wp-capistrano3'
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.23'
|
8
8
|
spec.authors = ['Nicolas RENAULT']
|
9
9
|
spec.email = ['nrenault@tangkoko.com']
|
10
10
|
spec.description = %q{Wordpress tasks for Capistrano 3.x}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wp-capistrano3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolas RENAULT
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|