wp-capistrano3 0.0.20 → 0.0.24

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: dd8315c1efb7c5b442112815ddae787294375296c38ac75e3f548248d147460f
4
- data.tar.gz: 86149f83713ebfb908435cb7beee48b31ccb2742533561b4b9d5e34da9bf9c50
3
+ metadata.gz: 2e0eefaba5ddc72fc559f8e04d3824eee2481f49d942633bb63bf865fbd96e07
4
+ data.tar.gz: 5a957dac127de72082f22b63e03aad6e4d82ca86dcac3e87f8eed4e4436a46c9
5
5
  SHA512:
6
- metadata.gz: e782951f9b83ebeb4d074bca03cd88cc50ecc340ef0b16d07071aadb9044016d25ed09532aade1fbb1c0f8d8cb64ef263162e7b87b8e55e2b776426303d3a7ff
7
- data.tar.gz: 17ac5ba881c1b641d51fcd0a83b9bce2fafc5173380bc9706ad057fa5360ff84ff5c01abb7e885af084d1363f3bcb712eaf153d1308b369950e0891bfe828c8c
6
+ metadata.gz: 75bda4918acdb24b3274832a69abe7fc445228a6ff0e768e42fb24bcb8d54539af9586e692cef335b8ab8deea13215480a00ada238c49d4961285700bdaa08ab
7
+ data.tar.gz: 460deaae98a8e8b4c75a656ea04bc1044bf9ef3c59c3acd6331f4e851c8a09392da65e99c3080bb36ed23d11a51e4071e21f414202980ce46402e9904a6b2380
@@ -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 /tmp/latest.tar.gz -C #{release_path} wordpress --strip-components=1"
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,7 +2,8 @@ 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
- if (File.exist?("#{release_path}/wp-config.php") == false)
5
+ puts "#{shared_path}/wp-config.php exist ?"
6
+ if (File.exist?("#{shared_path}/wp-config.php") == false)
6
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}"
7
8
  execute "cp #{release_path}/wp-config.php #{shared_path}/"
8
9
  end
@@ -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.20'
7
+ spec.version = '0.0.24'
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wp-capistrano3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.20
4
+ version: 0.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas RENAULT