wordmove 1.0.13 → 1.0.14
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/.ruby-version +1 -0
- data/.travis.yml +4 -0
- data/Gemfile.lock +20 -30
- data/README.mdown +26 -13
- data/Rakefile +5 -0
- data/lib/wordmove/core_ext.rb +11 -0
- data/lib/wordmove/deployer/base.rb +53 -32
- data/lib/wordmove/deployer/ftp.rb +1 -2
- data/lib/wordmove/deployer/ssh.rb +1 -2
- data/lib/wordmove/generators/Movefile +23 -14
- data/lib/wordmove/version.rb +1 -1
- data/spec/deployer/base_spec.rb +85 -0
- data/spec/sql_mover_spec.rb +3 -3
- data/wordmove.gemspec +11 -4
- metadata +18 -35
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7341b9b9fd7971ddd89434ebddb505d167173518
|
|
4
|
+
data.tar.gz: 59d250bb978004ce16056e406b5bbd8971986ab1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 802fef7e62907e3c2f26597cac0e5e229ff5bb7110ff02c700d77fcece4138ef1df4fde200d7cd57dcb4fd6bb5f9c1924b40dad17d3a5cd215120e5b7a7320fb
|
|
7
|
+
data.tar.gz: 327a3b94b37d374df03485a334ee415dc53bbd7893a340dd36d115ef98f257470a5760f5d793081d64dbde706b197c32fe8ab7a7bec1c6b7a2d7b70b6ae753d3
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.0.0-p247
|
data/.travis.yml
ADDED
data/Gemfile.lock
CHANGED
|
@@ -1,54 +1,43 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
wordmove (1.0.
|
|
4
|
+
wordmove (1.0.14)
|
|
5
5
|
activesupport
|
|
6
6
|
colored
|
|
7
7
|
i18n
|
|
8
|
-
photocopier (>= 0.0.
|
|
8
|
+
photocopier (>= 0.0.8)
|
|
9
9
|
rake
|
|
10
10
|
thor
|
|
11
11
|
|
|
12
12
|
GEM
|
|
13
13
|
remote: http://rubygems.org/
|
|
14
14
|
specs:
|
|
15
|
-
activesupport (
|
|
16
|
-
i18n (~> 0.6)
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
builder (3.1.4)
|
|
23
|
-
childprocess (0.3.6)
|
|
24
|
-
ffi (~> 1.0, >= 1.0.6)
|
|
15
|
+
activesupport (4.0.0)
|
|
16
|
+
i18n (~> 0.6, >= 0.6.4)
|
|
17
|
+
minitest (~> 4.2)
|
|
18
|
+
multi_json (~> 1.3)
|
|
19
|
+
thread_safe (~> 0.1)
|
|
20
|
+
tzinfo (~> 0.3.37)
|
|
21
|
+
atomic (1.1.13)
|
|
25
22
|
colored (1.2)
|
|
26
|
-
cucumber (1.2.1)
|
|
27
|
-
builder (>= 2.1.2)
|
|
28
|
-
diff-lcs (>= 1.1.3)
|
|
29
|
-
gherkin (~> 2.11.0)
|
|
30
|
-
json (>= 1.4.6)
|
|
31
23
|
diff-lcs (1.1.3)
|
|
32
24
|
escape (0.0.4)
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
json (1.7.5)
|
|
38
|
-
multi_json (1.7.0)
|
|
39
|
-
net-scp (1.1.0)
|
|
25
|
+
i18n (0.6.5)
|
|
26
|
+
minitest (4.7.5)
|
|
27
|
+
multi_json (1.7.9)
|
|
28
|
+
net-scp (1.1.2)
|
|
40
29
|
net-ssh (>= 2.6.5)
|
|
41
|
-
net-ssh (2.6.
|
|
30
|
+
net-ssh (2.6.8)
|
|
42
31
|
net-ssh-gateway (1.2.0)
|
|
43
32
|
net-ssh (>= 2.6.5)
|
|
44
|
-
photocopier (0.0.
|
|
33
|
+
photocopier (0.0.8)
|
|
45
34
|
activesupport
|
|
46
35
|
escape
|
|
47
36
|
i18n
|
|
48
37
|
net-scp
|
|
49
38
|
net-ssh
|
|
50
39
|
net-ssh-gateway
|
|
51
|
-
rake (10.0
|
|
40
|
+
rake (10.1.0)
|
|
52
41
|
rspec (2.12.0)
|
|
53
42
|
rspec-core (~> 2.12.0)
|
|
54
43
|
rspec-expectations (~> 2.12.0)
|
|
@@ -57,13 +46,14 @@ GEM
|
|
|
57
46
|
rspec-expectations (2.12.0)
|
|
58
47
|
diff-lcs (~> 1.1.3)
|
|
59
48
|
rspec-mocks (2.12.0)
|
|
60
|
-
thor (0.
|
|
49
|
+
thor (0.18.1)
|
|
50
|
+
thread_safe (0.1.2)
|
|
51
|
+
atomic
|
|
52
|
+
tzinfo (0.3.37)
|
|
61
53
|
|
|
62
54
|
PLATFORMS
|
|
63
55
|
ruby
|
|
64
56
|
|
|
65
57
|
DEPENDENCIES
|
|
66
|
-
aruba
|
|
67
|
-
cucumber
|
|
68
58
|
rspec
|
|
69
59
|
wordmove!
|
data/README.mdown
CHANGED
|
@@ -6,6 +6,8 @@ the remote staging server. SSH and FTP connections are both supported.
|
|
|
6
6
|
|
|
7
7
|
Think of it like Capistrano for Wordpress, complete with push/pull capabilities.
|
|
8
8
|
|
|
9
|
+
[](https://travis-ci.org/welaika/wordmove)
|
|
10
|
+
|
|
9
11
|
## Installation
|
|
10
12
|
|
|
11
13
|
That's easy:
|
|
@@ -42,21 +44,24 @@ You can configure Wordmove creating a `Movefile`. That's just a YAML file with a
|
|
|
42
44
|
```yaml
|
|
43
45
|
local:
|
|
44
46
|
vhost: "http://vhost.local"
|
|
45
|
-
wordpress_path: "
|
|
47
|
+
wordpress_path: "/home/john/sites/your_site" # use an absolute path here
|
|
48
|
+
|
|
46
49
|
database:
|
|
47
50
|
name: "database_name"
|
|
48
51
|
user: "user"
|
|
49
52
|
password: "password"
|
|
50
53
|
host: "127.0.0.1"
|
|
54
|
+
|
|
51
55
|
staging:
|
|
52
56
|
vhost: "http://remote.com"
|
|
53
|
-
wordpress_path: "/var/www/your_site"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
wordpress_path: "/var/www/your_site" # use an absolute path here
|
|
58
|
+
|
|
59
|
+
database:
|
|
60
|
+
name: "database_name"
|
|
61
|
+
user: "user"
|
|
62
|
+
password: "password"
|
|
63
|
+
host: "host"
|
|
64
|
+
|
|
60
65
|
exclude:
|
|
61
66
|
- ".sass-cache"
|
|
62
67
|
- ".git"
|
|
@@ -65,25 +70,33 @@ staging:
|
|
|
65
70
|
- "wp-content/*.sql"
|
|
66
71
|
- "Gemfile*"
|
|
67
72
|
- "Movefile"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
+
- "wp-config.php"
|
|
74
|
+
|
|
75
|
+
# paths: # you can customize wordpress internal paths
|
|
76
|
+
# wp_content: "wp-content"
|
|
77
|
+
# uploads: "wp-content/uploads"
|
|
78
|
+
# plugins: "wp-content/plugins"
|
|
79
|
+
# themes: "wp-content/themes"
|
|
80
|
+
# languages: "wp-content/languages"
|
|
81
|
+
# themes: "wp-content/themes"
|
|
82
|
+
|
|
73
83
|
# ssh:
|
|
74
84
|
# host: "host"
|
|
75
85
|
# user: "user"
|
|
76
86
|
# password: "password" # password is optional, will use public keys if available.
|
|
77
87
|
# port: 22 # Port is optional
|
|
88
|
+
# rsync_options: "--verbose" # Additional rsync options, optional
|
|
78
89
|
# gateway: # Gateway is optional
|
|
79
90
|
# host: "host"
|
|
80
91
|
# user: "user"
|
|
81
92
|
# password: "password" # password is optional, will use public keys if available.
|
|
93
|
+
|
|
82
94
|
# ftp:
|
|
83
95
|
# user: "user"
|
|
84
96
|
# password: "password"
|
|
85
97
|
# host: "host"
|
|
86
98
|
# passive: true
|
|
99
|
+
|
|
87
100
|
# production: # multiple environments can be specified
|
|
88
101
|
# [...]
|
|
89
102
|
```
|
data/Rakefile
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
require 'active_support/core_ext'
|
|
2
|
+
require 'wordmove/core_ext'
|
|
2
3
|
require 'wordmove/logger'
|
|
3
4
|
require 'wordmove/wordpress_directory'
|
|
4
5
|
require 'wordmove/sql_mover'
|
|
@@ -12,42 +13,70 @@ module Wordmove
|
|
|
12
13
|
attr_reader :logger
|
|
13
14
|
attr_reader :environment
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
class << self
|
|
17
|
+
def deployer_for(cli_options)
|
|
18
|
+
options = fetch_movefile(cli_options[:config])
|
|
19
|
+
available_enviroments = extract_available_envs(options)
|
|
20
|
+
options.merge!(cli_options).recursive_symbolize_keys!
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
if available_enviroments.size > 1 && options[:environment].nil?
|
|
23
|
+
raise "You need to specify an environment with --environment parameter"
|
|
24
|
+
end
|
|
25
|
+
environment = (options[:environment] || available_enviroments.first).to_sym
|
|
26
|
+
|
|
27
|
+
if options[environment][:ftp]
|
|
28
|
+
require 'wordmove/deployer/ftp'
|
|
29
|
+
FTP.new(environment, options)
|
|
30
|
+
elsif options[environment][:ssh]
|
|
31
|
+
require 'wordmove/deployer/ssh'
|
|
32
|
+
SSH.new(environment, options)
|
|
33
|
+
else
|
|
34
|
+
raise StandardError, "No valid adapter found."
|
|
35
|
+
end
|
|
23
36
|
end
|
|
24
37
|
|
|
25
|
-
|
|
38
|
+
def extract_available_envs(options)
|
|
39
|
+
options.keys.map(&:to_sym) - [ :local ]
|
|
40
|
+
end
|
|
26
41
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
42
|
+
def fetch_movefile(name = nil, start_dir = current_dir)
|
|
43
|
+
name ||= "Movefile"
|
|
44
|
+
entries = Dir["#{File.join(start_dir, name)}*"]
|
|
45
|
+
|
|
46
|
+
if entries.empty?
|
|
47
|
+
if last_dir?(start_dir)
|
|
48
|
+
raise StandardError, "Could not find a valid Movefile"
|
|
49
|
+
else
|
|
50
|
+
return fetch_movefile(name, upper_dir(start_dir))
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
found = entries.first
|
|
55
|
+
logger.task("Using Movefile: #{found}")
|
|
56
|
+
YAML::load(File.open(found))
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
def current_dir
|
|
60
|
+
'.'
|
|
35
61
|
end
|
|
36
|
-
end
|
|
37
62
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
63
|
+
def last_dir?(directory)
|
|
64
|
+
directory == "/" || File.exists?(File.join(directory, 'wp-config.php'))
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def upper_dir(directory)
|
|
68
|
+
File.expand_path(File.join(directory, '..'))
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
def logger
|
|
72
|
+
Logger.new(STDOUT).tap { |l| l.level = Logger::DEBUG }
|
|
42
73
|
end
|
|
43
|
-
YAML::load(File.open(path))
|
|
44
74
|
end
|
|
45
75
|
|
|
46
76
|
def initialize(environment, options = {})
|
|
47
77
|
@environment = environment.to_sym
|
|
48
78
|
@options = options
|
|
49
|
-
@logger =
|
|
50
|
-
@logger.level = Logger::DEBUG
|
|
79
|
+
@logger = self.class.logger
|
|
51
80
|
end
|
|
52
81
|
|
|
53
82
|
def push_db;
|
|
@@ -184,14 +213,6 @@ module Wordmove
|
|
|
184
213
|
def local_options
|
|
185
214
|
options[:local].clone
|
|
186
215
|
end
|
|
187
|
-
|
|
188
|
-
private
|
|
189
|
-
|
|
190
|
-
def self.recursive_symbolize_keys! hash
|
|
191
|
-
hash.symbolize_keys!
|
|
192
|
-
hash.values.select{|v| v.is_a? Hash}.each{|h| recursive_symbolize_keys!(h)}
|
|
193
|
-
end
|
|
194
|
-
|
|
195
216
|
end
|
|
196
217
|
|
|
197
218
|
end
|
|
@@ -10,8 +10,7 @@ module Wordmove
|
|
|
10
10
|
def initialize(environment, options)
|
|
11
11
|
super
|
|
12
12
|
ftp_options = remote_options[:ftp]
|
|
13
|
-
@copier = Photocopier::FTP.new(ftp_options)
|
|
14
|
-
@copier.logger = logger
|
|
13
|
+
@copier = Photocopier::FTP.new(ftp_options).tap { |c| c.logger = logger }
|
|
15
14
|
end
|
|
16
15
|
|
|
17
16
|
def push_db
|
|
@@ -7,8 +7,7 @@ module Wordmove
|
|
|
7
7
|
def initialize(environment, options)
|
|
8
8
|
super
|
|
9
9
|
ssh_options = remote_options[:ssh]
|
|
10
|
-
@copier = Photocopier::SSH.new(ssh_options)
|
|
11
|
-
@copier.logger = logger
|
|
10
|
+
@copier = Photocopier::SSH.new(ssh_options).tap { |c| c.logger = logger }
|
|
12
11
|
end
|
|
13
12
|
|
|
14
13
|
def push_db
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
local:
|
|
2
2
|
vhost: "http://vhost.local"
|
|
3
|
-
wordpress_path: "
|
|
3
|
+
wordpress_path: "/home/john/sites/your_site" # use an absolute path here
|
|
4
|
+
|
|
4
5
|
database:
|
|
5
6
|
name: "database_name"
|
|
6
7
|
user: "user"
|
|
7
8
|
password: "password"
|
|
8
9
|
host: "127.0.0.1"
|
|
10
|
+
|
|
9
11
|
staging:
|
|
10
12
|
vhost: "http://remote.com"
|
|
11
|
-
wordpress_path: "/var/www/your_site"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
wordpress_path: "/var/www/your_site" # use an absolute path here
|
|
14
|
+
|
|
15
|
+
database:
|
|
16
|
+
name: "database_name"
|
|
17
|
+
user: "user"
|
|
18
|
+
password: "password"
|
|
19
|
+
host: "host"
|
|
20
|
+
|
|
19
21
|
exclude:
|
|
20
22
|
- ".sass-cache"
|
|
21
23
|
- ".git"
|
|
@@ -25,25 +27,32 @@ staging:
|
|
|
25
27
|
- "Gemfile*"
|
|
26
28
|
- "Movefile"
|
|
27
29
|
- "wp-config.php"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
|
|
31
|
+
# paths: # you can customize wordpress internal paths
|
|
32
|
+
# wp_content: "wp-content"
|
|
33
|
+
# uploads: "wp-content/uploads"
|
|
34
|
+
# plugins: "wp-content/plugins"
|
|
35
|
+
# themes: "wp-content/themes"
|
|
36
|
+
# languages: "wp-content/languages"
|
|
37
|
+
# themes: "wp-content/themes"
|
|
38
|
+
|
|
33
39
|
# ssh:
|
|
34
40
|
# host: "host"
|
|
35
41
|
# user: "user"
|
|
36
42
|
# password: "password" # password is optional, will use public keys if available.
|
|
37
43
|
# port: 22 # Port is optional
|
|
44
|
+
# rsync_options: "--verbose" # Additional rsync options, optional
|
|
38
45
|
# gateway: # Gateway is optional
|
|
39
46
|
# host: "host"
|
|
40
47
|
# user: "user"
|
|
41
48
|
# password: "password" # password is optional, will use public keys if available.
|
|
49
|
+
|
|
42
50
|
# ftp:
|
|
43
51
|
# user: "user"
|
|
44
52
|
# password: "password"
|
|
45
53
|
# host: "host"
|
|
46
54
|
# passive: true
|
|
55
|
+
|
|
47
56
|
# production: # multiple environments can be specified
|
|
48
57
|
# [...]
|
|
49
58
|
|
data/lib/wordmove/version.rb
CHANGED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
require 'wordmove/deployer/base'
|
|
2
|
+
require 'tempfile'
|
|
3
|
+
|
|
4
|
+
describe Wordmove::Deployer::Base do
|
|
5
|
+
let(:klass) { Wordmove::Deployer::Base }
|
|
6
|
+
|
|
7
|
+
context "::fetch_movefile" do
|
|
8
|
+
TMPDIR = "/tmp/wordmove"
|
|
9
|
+
|
|
10
|
+
let(:path) { File.join(TMPDIR, 'Movefile') }
|
|
11
|
+
let(:yaml) { "name: Waldo\njob: Hider" }
|
|
12
|
+
|
|
13
|
+
before do
|
|
14
|
+
FileUtils.mkdir(TMPDIR)
|
|
15
|
+
klass.stub(:current_dir).and_return(TMPDIR)
|
|
16
|
+
klass.stub(:logger).and_return(double('logger').as_null_object)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
after do
|
|
20
|
+
FileUtils.rm_rf(TMPDIR)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
context "when Movefile is missing" do
|
|
24
|
+
it 'raises an exception' do
|
|
25
|
+
expect { klass.fetch_movefile }.to raise_error(StandardError)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
context "when Movefile is present" do
|
|
30
|
+
before do
|
|
31
|
+
File.open(path, 'w') { |f| f.write(yaml) }
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
it 'finds a Movefile in current dir' do
|
|
35
|
+
result = klass.fetch_movefile
|
|
36
|
+
expect(result['name']).to eq('Waldo')
|
|
37
|
+
expect(result['job']).to eq('Hider')
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
context "when Movefile has extensions" do
|
|
41
|
+
let(:path) { File.join(TMPDIR, 'Movefile.yml') }
|
|
42
|
+
|
|
43
|
+
it 'finds it aswell' do
|
|
44
|
+
result = klass.fetch_movefile
|
|
45
|
+
expect(result['name']).to eq('Waldo')
|
|
46
|
+
expect(result['job']).to eq('Hider')
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
context "directories traversal" do
|
|
51
|
+
before do
|
|
52
|
+
@test_dir = File.join(TMPDIR, "test")
|
|
53
|
+
FileUtils.mkdir(@test_dir)
|
|
54
|
+
klass.stub(:current_dir).and_return(@test_dir)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
it 'goes up through the directory tree and finds it' do
|
|
58
|
+
result = klass.fetch_movefile
|
|
59
|
+
expect(result['name']).to eq('Waldo')
|
|
60
|
+
expect(result['job']).to eq('Hider')
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
context 'Movefile not found, met root node' do
|
|
64
|
+
it 'raises an exception' do
|
|
65
|
+
klass.stub(:current_dir).and_return('/tmp')
|
|
66
|
+
expect { klass.fetch_movefile }.to raise_error(StandardError)
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
context 'Movefile not found, found wp-config.php' do
|
|
71
|
+
before do
|
|
72
|
+
FileUtils.touch(File.join(@test_dir, "wp-config.php"))
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
it 'raises an exception' do
|
|
76
|
+
expect { klass.fetch_movefile }.to raise_error(StandardError)
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
end
|
|
85
|
+
|
data/spec/sql_mover_spec.rb
CHANGED
|
@@ -3,9 +3,9 @@ require 'tempfile'
|
|
|
3
3
|
|
|
4
4
|
describe Wordmove::SqlMover do
|
|
5
5
|
|
|
6
|
-
let(:sql_path) {
|
|
7
|
-
let(:source_config) {
|
|
8
|
-
let(:dest_config) {
|
|
6
|
+
let(:sql_path) { double }
|
|
7
|
+
let(:source_config) { double }
|
|
8
|
+
let(:dest_config) { double }
|
|
9
9
|
let(:sql_mover) {
|
|
10
10
|
Wordmove::SqlMover.new(
|
|
11
11
|
sql_path,
|
data/wordmove.gemspec
CHANGED
|
@@ -20,11 +20,18 @@ Gem::Specification.new do |gem|
|
|
|
20
20
|
gem.add_dependency "thor"
|
|
21
21
|
gem.add_dependency "activesupport"
|
|
22
22
|
gem.add_dependency "i18n"
|
|
23
|
-
gem.add_dependency "photocopier", ">= 0.0.
|
|
23
|
+
gem.add_dependency "photocopier", ">= 0.0.8"
|
|
24
24
|
|
|
25
25
|
gem.add_development_dependency "rspec"
|
|
26
|
-
gem.add_development_dependency "cucumber"
|
|
27
|
-
gem.add_development_dependency "aruba"
|
|
28
26
|
|
|
29
|
-
gem.post_install_message =
|
|
27
|
+
gem.post_install_message = <<-EOF
|
|
28
|
+
|
|
29
|
+
============================================================================
|
|
30
|
+
Beware! From version 1.0, we have changed the wordmove flags' behaviour:
|
|
31
|
+
they used to tell wordmove what to _skip_, now they tell what to _include_.
|
|
32
|
+
|
|
33
|
+
Read `wordmove help` for more info.
|
|
34
|
+
============================================================================
|
|
35
|
+
|
|
36
|
+
EOF
|
|
30
37
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wordmove
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stefano Verna
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-
|
|
12
|
+
date: 2013-08-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: colored
|
|
@@ -87,14 +87,14 @@ dependencies:
|
|
|
87
87
|
requirements:
|
|
88
88
|
- - '>='
|
|
89
89
|
- !ruby/object:Gem::Version
|
|
90
|
-
version: 0.0.
|
|
90
|
+
version: 0.0.8
|
|
91
91
|
type: :runtime
|
|
92
92
|
prerelease: false
|
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
|
94
94
|
requirements:
|
|
95
95
|
- - '>='
|
|
96
96
|
- !ruby/object:Gem::Version
|
|
97
|
-
version: 0.0.
|
|
97
|
+
version: 0.0.8
|
|
98
98
|
- !ruby/object:Gem::Dependency
|
|
99
99
|
name: rspec
|
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -109,34 +109,6 @@ dependencies:
|
|
|
109
109
|
- - '>='
|
|
110
110
|
- !ruby/object:Gem::Version
|
|
111
111
|
version: '0'
|
|
112
|
-
- !ruby/object:Gem::Dependency
|
|
113
|
-
name: cucumber
|
|
114
|
-
requirement: !ruby/object:Gem::Requirement
|
|
115
|
-
requirements:
|
|
116
|
-
- - '>='
|
|
117
|
-
- !ruby/object:Gem::Version
|
|
118
|
-
version: '0'
|
|
119
|
-
type: :development
|
|
120
|
-
prerelease: false
|
|
121
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
122
|
-
requirements:
|
|
123
|
-
- - '>='
|
|
124
|
-
- !ruby/object:Gem::Version
|
|
125
|
-
version: '0'
|
|
126
|
-
- !ruby/object:Gem::Dependency
|
|
127
|
-
name: aruba
|
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
|
129
|
-
requirements:
|
|
130
|
-
- - '>='
|
|
131
|
-
- !ruby/object:Gem::Version
|
|
132
|
-
version: '0'
|
|
133
|
-
type: :development
|
|
134
|
-
prerelease: false
|
|
135
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
136
|
-
requirements:
|
|
137
|
-
- - '>='
|
|
138
|
-
- !ruby/object:Gem::Version
|
|
139
|
-
version: '0'
|
|
140
112
|
description: Capistrano for Wordpress
|
|
141
113
|
email:
|
|
142
114
|
- stefano.verna@welaika.com
|
|
@@ -148,7 +120,9 @@ extra_rdoc_files: []
|
|
|
148
120
|
files:
|
|
149
121
|
- .gitignore
|
|
150
122
|
- .rspec
|
|
123
|
+
- .ruby-version
|
|
151
124
|
- .rvmrc
|
|
125
|
+
- .travis.yml
|
|
152
126
|
- Gemfile
|
|
153
127
|
- Gemfile.lock
|
|
154
128
|
- README.mdown
|
|
@@ -158,6 +132,7 @@ files:
|
|
|
158
132
|
- lib/wordmove/assets/dump.php.erb
|
|
159
133
|
- lib/wordmove/assets/import.php.erb
|
|
160
134
|
- lib/wordmove/cli.rb
|
|
135
|
+
- lib/wordmove/core_ext.rb
|
|
161
136
|
- lib/wordmove/deployer/base.rb
|
|
162
137
|
- lib/wordmove/deployer/ftp.rb
|
|
163
138
|
- lib/wordmove/deployer/ssh.rb
|
|
@@ -169,6 +144,7 @@ files:
|
|
|
169
144
|
- lib/wordmove/wordpress_directory.rb
|
|
170
145
|
- pkg/wordmove-0.0.1.gem
|
|
171
146
|
- pkg/wordmove-0.0.2.gem
|
|
147
|
+
- spec/deployer/base_spec.rb
|
|
172
148
|
- spec/fixtures/Movefile
|
|
173
149
|
- spec/spec_helper.rb
|
|
174
150
|
- spec/sql_mover_spec.rb
|
|
@@ -176,9 +152,15 @@ files:
|
|
|
176
152
|
homepage: https://github.com/welaika/wordmove
|
|
177
153
|
licenses: []
|
|
178
154
|
metadata: {}
|
|
179
|
-
post_install_message:
|
|
180
|
-
|
|
181
|
-
|
|
155
|
+
post_install_message: |2+
|
|
156
|
+
|
|
157
|
+
============================================================================
|
|
158
|
+
Beware! From version 1.0, we have changed the wordmove flags' behaviour:
|
|
159
|
+
they used to tell wordmove what to _skip_, now they tell what to _include_.
|
|
160
|
+
|
|
161
|
+
Read `wordmove help` for more info.
|
|
162
|
+
============================================================================
|
|
163
|
+
|
|
182
164
|
rdoc_options: []
|
|
183
165
|
require_paths:
|
|
184
166
|
- lib
|
|
@@ -199,6 +181,7 @@ signing_key:
|
|
|
199
181
|
specification_version: 4
|
|
200
182
|
summary: Capistrano for Wordpress
|
|
201
183
|
test_files:
|
|
184
|
+
- spec/deployer/base_spec.rb
|
|
202
185
|
- spec/fixtures/Movefile
|
|
203
186
|
- spec/spec_helper.rb
|
|
204
187
|
- spec/sql_mover_spec.rb
|