wordmove 2.1.4 → 2.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5f0c5761b7b67c9a56f5feffddc1abdc5597161
4
- data.tar.gz: a8bd9fdb55dab809b61ff703a11190f5888550c2
3
+ metadata.gz: 362573df1a836d8861bc597eb36721c84a9cd92e
4
+ data.tar.gz: d676f1e50f275835eb2192821e931a1f2afca852
5
5
  SHA512:
6
- metadata.gz: 189514b55cc4c9f4ff371292f8054f1b938f10f1d9f9c3901707817d4e3819a6dd6136fef62694e764354374f56eb91fbfaecbe9c65001d2ea0b8fdda784cea9
7
- data.tar.gz: e6b160676eae31ec03de41fa5fc91c29df495072467c8169cd64816415cfb92ebce78b285964fe94e48cc0e0824023ba89b0b5430433c53556ca63bb3aa6f4ac
6
+ metadata.gz: 70a71176cf4a18597f4997f1c0bda8c63c2f1415b0fb48e04b13bbb586c9cbe38c32efec79699fc941cdeef511c490ea16961f4982d3ed71a308e463b26af085
7
+ data.tar.gz: 20047b933fd5e4b55f6c79c151df9559d34223d33d1d10dbcf3cfd268de014e410a0056a92f19cf030f328125fb3c2bbe441c840d0ded9fd851567a11700bdc6
data/README.mdown CHANGED
@@ -41,12 +41,12 @@ Wordmove just acts as automation glue bewtween tools you already have and love.
41
41
  > wordmove help
42
42
  Tasks:
43
43
  wordmove help [TASK] # Describe available tasks or one specific task
44
- wordmove init # Generates a brand new Movefile
44
+ wordmove init # Generates a brand new movefile.yml
45
45
  wordmove pull # Pulls WP data from remote host to the local machine
46
46
  wordmove push # Pushes WP data from local machine to remote host
47
47
  ```
48
48
 
49
- Move inside the Wordpress folder and use `wordmove init` to generate a new `Movefile` and edit it with your settings. Read the next paragraph for more info.
49
+ Move inside the Wordpress folder and use `wordmove init` to generate a new `movefile.yml` and edit it with your settings. Read the next paragraph for more info.
50
50
 
51
51
  **See the wiki article: [Usage and flags explained](https://github.com/welaika/wordmove/wiki/Usage-and-flags-explained) for more info.**
52
52
 
@@ -56,11 +56,11 @@ Move inside the Wordpress folder and use `wordmove init` to generate a new `Move
56
56
  * Pull database and uploads, adapting paths and urls: http://vimeo.com/74646861
57
57
  * Push only theme, transfer only modified files: http://vimeo.com/74647529
58
58
 
59
- ## Movefile
59
+ ## movefile.yml
60
60
 
61
- You can configure Wordmove creating a `Movefile`. That's just a YAML file with local and remote host infos:
61
+ You can configure Wordmove creating a `movefile.yml`. That's just a YAML file with local and remote host infos:
62
62
 
63
- ```
63
+ ```yaml
64
64
  global:
65
65
  sql_adapter: "default"
66
66
 
@@ -101,6 +101,9 @@ production:
101
101
  - "tmp/*"
102
102
  - "Gemfile*"
103
103
  - "Movefile"
104
+ - "movefile"
105
+ - "movefile.yml"
106
+ - "movefile.yaml"
104
107
  - "wp-config.php"
105
108
  - "wp-content/*.sql"
106
109
 
@@ -123,7 +126,7 @@ See the [Windows (un)support disclaimer](https://github.com/welaika/wordmove/wik
123
126
  ### SSH
124
127
 
125
128
  * You need `rsync` on your machine; as far as we know it's already installed on OS X and Linux.
126
- * if you want to use your SSH public key for authentication,just delete the `production.ssh.password` field in your `Movefile`. Easy peasy.
129
+ * if you want to use your SSH public key for authentication,just delete the `production.ssh.password` field in your `movefile.yml`. Easy peasy.
127
130
  * writing the password inside the move file was and is somewhat supported, but **we discourage this practice** in favor of password-less authentication with pub key. Read [here](https://github.com/welaika/wordmove/wiki/%5Bdeprecated%5D-SSH-password-inside-Movefile) for old informations.
128
131
 
129
132
  ### FTP
@@ -137,7 +140,7 @@ FTP support is [planned to be discontinued](https://github.com/welaika/wordmove/
137
140
 
138
141
  ### Multistage
139
142
 
140
- You can define multiple environments in your `Movefile`, such as production, staging, etc.
143
+ You can define multiple environments in your `movefile.yml`, such as production, staging, etc.
141
144
  Use `-e` with `pull` or `push` to run the command on the specified environment.
142
145
 
143
146
  For example:
data/lib/wordmove/cli.rb CHANGED
@@ -7,7 +7,7 @@ module Wordmove
7
7
  puts Wordmove::VERSION
8
8
  end
9
9
 
10
- desc "init", "Generates a brand new Movefile"
10
+ desc "init", "Generates a brand new movefile.yml"
11
11
  def init
12
12
  Wordmove::Generators::Movefile.start
13
13
  end
@@ -37,8 +37,11 @@ module Wordmove
37
37
  end
38
38
 
39
39
  def fetch_movefile(name = nil, start_dir = current_dir)
40
- name ||= "Movefile"
41
- entries = Dir["#{File.join(start_dir, name)}*"]
40
+ entries = if name.nil?
41
+ Dir["#{File.join(start_dir, '{M,m}ovefile')}{,.yml,.yaml}"]
42
+ else
43
+ Dir["#{File.join(start_dir, name)}{,.yml,.yaml}"]
44
+ end
42
45
 
43
46
  if entries.empty?
44
47
  raise MovefileNotFound, "Could not find a valid Movefile" if last_dir?(start_dir)
@@ -47,7 +50,7 @@ module Wordmove
47
50
 
48
51
  found = entries.first
49
52
  logger.task("Using Movefile: #{found}")
50
- YAML.safe_load(ERB.new(File.read(found)).result)
53
+ YAML.safe_load(ERB.new(File.read(found)).result, [], [], true)
51
54
  end
52
55
 
53
56
  def current_dir
@@ -9,7 +9,7 @@ module Wordmove
9
9
  end
10
10
 
11
11
  def copy_movefile
12
- template "Movefile"
12
+ template "movefile.yml"
13
13
  end
14
14
  end
15
15
  end
@@ -32,6 +32,9 @@ production:
32
32
  - "tmp/*"
33
33
  - "Gemfile*"
34
34
  - "Movefile"
35
+ - "movefile"
36
+ - "movefile.yml"
37
+ - "movefile.yaml"
35
38
  - "wp-config.php"
36
39
  - "wp-content/*.sql.gz"
37
40
 
@@ -1,3 +1,3 @@
1
1
  module Wordmove
2
- VERSION = "2.1.4".freeze
2
+ VERSION = "2.2.0".freeze
3
3
  end
data/wordmove.gemspec CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
36
36
 
37
37
  spec.required_ruby_version = "~> 2.4.0"
38
38
 
39
- spec.add_development_dependency "bundler", ">= 1.14.6"
39
+ spec.add_development_dependency "bundler", "~> 1.14", ">= 1.14.6"
40
40
  spec.add_development_dependency "rake", "~> 10.0"
41
41
  spec.add_development_dependency "rspec", "~> 3.3"
42
42
  spec.add_development_dependency "simplecov", "~> 0.9"
@@ -45,13 +45,11 @@ Gem::Specification.new do |spec|
45
45
  spec.add_development_dependency "rubocop", "~> 0.49.0"
46
46
 
47
47
  spec.post_install_message = <<-RAINBOW
48
- Starting from 2.0.0 Wordmove will compress SQL dumps both in remote and locale environments.
49
- If something will broke, please check if gzip executable is present locally and
50
- remotely. We are considering obvious it's installed in any web environment.
51
-
52
- Starting from 2.1.0 you'll need to add the global section in your Movefile:
48
+ Starting from 2.1.0 you'll need to add the global section in your movefile.yaml:
53
49
  global:
54
50
  sql_adapter: "default"
55
51
  Or you can spawn a new one with `wordmove init` (backup the old one!)
52
+
53
+ Starting from 2.2.0 the default name of the config file is `movefile.yaml`.
56
54
  RAINBOW
57
55
  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: 2.1.4
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Verna
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: exe
14
14
  cert_chain: []
15
- date: 2017-11-12 00:00:00.000000000 Z
15
+ date: 2017-11-16 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: colorize
@@ -86,6 +86,9 @@ dependencies:
86
86
  name: bundler
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
+ - - "~>"
90
+ - !ruby/object:Gem::Version
91
+ version: '1.14'
89
92
  - - ">="
90
93
  - !ruby/object:Gem::Version
91
94
  version: 1.14.6
@@ -93,6 +96,9 @@ dependencies:
93
96
  prerelease: false
94
97
  version_requirements: !ruby/object:Gem::Requirement
95
98
  requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: '1.14'
96
102
  - - ">="
97
103
  - !ruby/object:Gem::Version
98
104
  version: 1.14.6
@@ -219,8 +225,8 @@ files:
219
225
  - lib/wordmove/deployer/ssh/default_sql_adapter.rb
220
226
  - lib/wordmove/deployer/ssh/wpcli_sql_adapter.rb
221
227
  - lib/wordmove/exceptions.rb
222
- - lib/wordmove/generators/Movefile
223
228
  - lib/wordmove/generators/movefile.rb
229
+ - lib/wordmove/generators/movefile.yml
224
230
  - lib/wordmove/generators/movefile_adapter.rb
225
231
  - lib/wordmove/logger.rb
226
232
  - lib/wordmove/sql_adapter/default.rb
@@ -236,14 +242,12 @@ licenses:
236
242
  - MIT
237
243
  metadata: {}
238
244
  post_install_message: |2
239
- Starting from 2.0.0 Wordmove will compress SQL dumps both in remote and locale environments.
240
- If something will broke, please check if gzip executable is present locally and
241
- remotely. We are considering obvious it's installed in any web environment.
242
-
243
- Starting from 2.1.0 you'll need to add the global section in your Movefile:
245
+ Starting from 2.1.0 you'll need to add the global section in your movefile.yaml:
244
246
  global:
245
247
  sql_adapter: "default"
246
248
  Or you can spawn a new one with `wordmove init` (backup the old one!)
249
+
250
+ Starting from 2.2.0 the default name of the config file is `movefile.yaml`.
247
251
  rdoc_options: []
248
252
  require_paths:
249
253
  - lib