wordpress-capistrano 0.2.3 → 0.3.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/capistrano/tasks/wordpress.rake +5 -1
- data/wordpress-capistrano.gemspec +3 -3
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f6e9981e08a5dba6b53e25784960aab113da742c
|
|
4
|
+
data.tar.gz: 73bb3bc265bffdff8d85f3e1ac91211b354ed41b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8b39cffe1528b967a844712cfc78f567fddca2ce312faf5f5f6d310b469fbe4a4d568fb3415b21b23b8d7c0106c7939fe27a7838515ee6a38183a39117b4b0d8
|
|
7
|
+
data.tar.gz: 3fbd7cd049e029641e6eacf7a543eb6567f9cfda022fbce20eebaa032e9c2e0dd63b32255ce7e1db21694a4e38b9aa22e86b5e055577fc8ad9517ddd2afd756b
|
|
@@ -8,22 +8,26 @@ namespace :wordpress do
|
|
|
8
8
|
within release_path do
|
|
9
9
|
with path: "#{fetch(:path)}:$PATH" do
|
|
10
10
|
execute :wp, "--path=#{fetch(:wp_path)} db export #{fetch(:tmp_dir)}/database.sql"
|
|
11
|
+
execute :zip, "-j database #{fetch(:tmp_dir)}/database.sql"
|
|
11
12
|
end
|
|
12
13
|
end
|
|
13
14
|
|
|
14
|
-
download! "#{fetch(:tmp_dir)}/database.
|
|
15
|
+
download! "#{fetch(:tmp_dir)}/database.zip", "database.zip"
|
|
15
16
|
|
|
16
17
|
run_locally do
|
|
17
18
|
timestamp = "#{Time.now.year}-#{Time.now.month}-#{Time.now.day}-#{Time.now.hour}-#{Time.now.min}-#{Time.now.sec}"
|
|
18
19
|
execute :wp, "--path=#{fetch(:wp_path)} db export #{fetch(:application)}.#{timestamp}.sql"
|
|
20
|
+
execute :unzip, "-o -j database.zip"
|
|
19
21
|
execute :wp, "--path=#{fetch(:wp_path)} db import database.sql"
|
|
20
22
|
execute :wp, "--path=#{fetch(:wp_path)} search-replace #{fetch(:url)} #{fetch(:local_url)}"
|
|
23
|
+
execute :rm, "database.zip"
|
|
21
24
|
execute :rm, "database.sql"
|
|
22
25
|
execute :wp, "--path=#{fetch(:wp_path)}", :option, :delete, :template_root, raise_on_non_zero_exit: false
|
|
23
26
|
execute :wp, "--path=#{fetch(:wp_path)}", :option, :delete, :stylesheet_root, raise_on_non_zero_exit: false
|
|
24
27
|
end
|
|
25
28
|
|
|
26
29
|
execute :rm, "#{fetch(:tmp_dir)}/database.sql"
|
|
30
|
+
execute :rm, "#{fetch(:tmp_dir)}/database.zip"
|
|
27
31
|
end
|
|
28
32
|
|
|
29
33
|
end
|
|
@@ -4,10 +4,10 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = 'wordpress-capistrano'
|
|
7
|
-
spec.version = '0.
|
|
7
|
+
spec.version = '0.3.0'
|
|
8
8
|
spec.authors = ['Craig Morris']
|
|
9
9
|
spec.email = ['craig.michael.morris@gmail.com']
|
|
10
|
-
spec.description = %q{WordPress
|
|
10
|
+
spec.description = %q{Deploy your WordPress projects with Capistrano 3.x}
|
|
11
11
|
spec.summary = %q{WordPress support for Capistrano 3.x}
|
|
12
12
|
spec.homepage = 'https://github.com/morrislaptop/wordpress-capistrano'
|
|
13
13
|
spec.license = 'MIT'
|
|
@@ -20,5 +20,5 @@ Gem::Specification.new do |spec|
|
|
|
20
20
|
spec.add_dependency 'capistrano', '~> 3.0'
|
|
21
21
|
|
|
22
22
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
|
23
|
-
spec.add_development_dependency 'rake'
|
|
23
|
+
spec.add_development_dependency 'rake', '~> 0'
|
|
24
24
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wordpress-capistrano
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Craig Morris
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-04-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capistrano
|
|
@@ -42,17 +42,17 @@ dependencies:
|
|
|
42
42
|
name: rake
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- - "
|
|
45
|
+
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
47
|
version: '0'
|
|
48
48
|
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- - "
|
|
52
|
+
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '0'
|
|
55
|
-
description: WordPress
|
|
55
|
+
description: Deploy your WordPress projects with Capistrano 3.x
|
|
56
56
|
email:
|
|
57
57
|
- craig.michael.morris@gmail.com
|
|
58
58
|
executables: []
|
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
89
89
|
version: '0'
|
|
90
90
|
requirements: []
|
|
91
91
|
rubyforge_project:
|
|
92
|
-
rubygems_version: 2.
|
|
92
|
+
rubygems_version: 2.4.6
|
|
93
93
|
signing_key:
|
|
94
94
|
specification_version: 4
|
|
95
95
|
summary: WordPress support for Capistrano 3.x
|