wslave 0.0.7 → 0.0.8

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
  SHA1:
3
- metadata.gz: 9301533e2766b919d24287111a858a5a80d3a714
4
- data.tar.gz: f057b59fe6c6c4ffafb07f3ec7da628e9e057233
3
+ metadata.gz: 29d53a62cb4700f2be52f4cda9a588dabc09f268
4
+ data.tar.gz: 62ea910bc7e401fb77309a1a09f23daa88e6ad92
5
5
  SHA512:
6
- metadata.gz: 2b581ee81a0d4a5ba975dd35c79f71e8ebbc9a16766907f25287a01034ad7677417e6aa762ab8668e98fea375e940d2be6896bae7480ded806dc00e1d2c47440
7
- data.tar.gz: 79501ea3b87d441db67c4e71ccb4d60a0a62b1fc46a25888925fbdbc3ca7ff0d71721980d340d1d3c513978b1575cfa8af92486e08cf4dc49ad4fbd1b80e1c21
6
+ metadata.gz: ce3fda215dfac075252b8e56b5cd8f46f174912a53d44feb9a2acd6b63a4870677dac7cda8d1905a85669daabc2ae793abb93a9764de23b91af3f20afe72366a
7
+ data.tar.gz: 68591981867390b5fdb2f3b6f11174288ffaff8c3665231b91c998a7d8ee11a0b4b2cd11ae60134fa61cd325b11fce8640783ad18bc59e452519d4789a412ff5
Binary file
@@ -30,43 +30,49 @@ namespace :deploy do
30
30
  end
31
31
  end
32
32
 
33
- task :upload_wp do
33
+ desc 'Syncs the wordpress directory with rsync'
34
+ task :sync_wp do
34
35
  on roles(:web) do
35
- upload! './public/wordpress', "#{deploy_path}/shared/public/", recursive: true
36
+ `rsync -avzPhu --delete ./public/wordpress/ #{deploy_user}@#{host_addr}:#{deploy_path}/shared/public/wordpress/`
36
37
  end
37
38
  end
38
39
 
39
- task :sync_wp do
40
+ desc 'Uploads the uploads directory'
41
+ task :upload_wp do
40
42
  on roles(:web) do
41
- `rsync -avzPhu --delete ./public/wordpress/ #{deploy_user}@#{host_addr}:#{deploy_path}/shared/public/wordpress/`
43
+ upload! './public/wordpress', "#{deploy_path}/shared/public/", recursive: true
42
44
  end
43
45
  end
44
46
 
45
- task :sync_content do
47
+ desc 'Syncs the uploads directory with rsync'
48
+ task :sync_uploads do
46
49
  on roles(:web) do
47
50
  `rsync -avzPhu --delete ./public/wp-content/uploads/ #{deploy_user}@#{host_addr}:#{deploy_path}/shared/public/wp-content/uploads/`
48
51
  end
49
52
  end
50
53
 
51
- task :upload_content do
54
+ desc 'Uploads the uploads directory'
55
+ task :upload_uploads do
52
56
  on roles(:web) do
53
57
  upload! './public/wp-content/uploads', "#{deploy_path}/shared/public/wp-content/", recursive: true
54
58
  end
55
59
  end
56
60
 
61
+ desc 'Syncs the plugins directory with rsync'
57
62
  task :sync_plugins do
58
63
  on roles(:web) do
59
- `rsync -avzPhu --delete ./public/wp-content/plugins/ #{deploy_user}@#{host_addr}:#{deploy_path}/shared/public/plugins/`
64
+ `rsync -avzPhu --delete ./public/wp-content/plugins/ #{deploy_user}@#{host_addr}:#{deploy_path}/shared/public/wp-content/plugins/`
60
65
  end
61
66
  end
62
67
 
68
+ desc 'Uploads the plugins directory'
63
69
  task :upload_plugins do
64
70
  on roles(:web) do
65
- upload! './public/wp-content/plugins', "#{deploy_path}/shared/public/", recursive: true
71
+ upload! './public/wp-content/plugins', "#{deploy_path}/shared/public/wp-content/", recursive: true
66
72
  end
67
73
  end
68
74
 
69
- desc 'Preform special seed tasks required on intial seed'
75
+ desc 'Perform special seed tasks required on intial seed'
70
76
  task :initial do
71
77
  on roles(:web) do
72
78
  invoke('deploy:check:directories')
@@ -74,7 +80,7 @@ namespace :deploy do
74
80
  invoke('deploy:check:make_linked_dirs')
75
81
  invoke('deploy:wp_config')
76
82
  invoke('deploy:upload_wp')
77
- invoke('deploy:upload_content')
83
+ invoke('deploy:upload_uploads')
78
84
  invoke('deploy')
79
85
  invoke('db:seed')
80
86
  end
@@ -30,43 +30,49 @@ namespace :deploy do
30
30
  end
31
31
  end
32
32
 
33
- task :upload_wp do
33
+ desc 'Syncs the wordpress directory with rsync'
34
+ task :sync_wp do
34
35
  on roles(:web) do
35
- upload! './public/wordpress', "#{deploy_path}/shared/public/", recursive: true
36
+ `rsync -avzPhu --delete ./public/wordpress/ #{deploy_user}@#{host_addr}:#{deploy_path}/shared/public/wordpress/`
36
37
  end
37
38
  end
38
39
 
39
- task :sync_wp do
40
+ desc 'Uploads the uploads directory'
41
+ task :upload_wp do
40
42
  on roles(:web) do
41
- `rsync -avzPhu --delete ./public/wordpress/ #{deploy_user}@#{host_addr}:#{deploy_path}/shared/public/wordpress/`
43
+ upload! './public/wordpress', "#{deploy_path}/shared/public/", recursive: true
42
44
  end
43
45
  end
44
46
 
45
- task :sync_content do
47
+ desc 'Syncs the uploads directory with rsync'
48
+ task :sync_uploads do
46
49
  on roles(:web) do
47
50
  `rsync -avzPhu --delete ./public/wp-content/uploads/ #{deploy_user}@#{host_addr}:#{deploy_path}/shared/public/wp-content/uploads/`
48
51
  end
49
52
  end
50
53
 
51
- task :upload_content do
54
+ desc 'Uploads the uploads directory'
55
+ task :upload_uploads do
52
56
  on roles(:web) do
53
57
  upload! './public/wp-content/uploads', "#{deploy_path}/shared/public/wp-content/", recursive: true
54
58
  end
55
59
  end
56
60
 
61
+ desc 'Syncs the plugins directory with rsync'
57
62
  task :sync_plugins do
58
63
  on roles(:web) do
59
- `rsync -avzPhu --delete ./public/wp-content/plugins/ #{deploy_user}@#{host_addr}:#{deploy_path}/shared/public/plugins/`
64
+ `rsync -avzPhu --delete ./public/wp-content/plugins/ #{deploy_user}@#{host_addr}:#{deploy_path}/shared/public/wp-content/plugins/`
60
65
  end
61
66
  end
62
67
 
68
+ desc 'Uploads the plugins directory'
63
69
  task :upload_plugins do
64
70
  on roles(:web) do
65
- upload! './public/wp-content/plugins', "#{deploy_path}/shared/public/", recursive: true
71
+ upload! './public/wp-content/plugins', "#{deploy_path}/shared/public/wp-content/", recursive: true
66
72
  end
67
73
  end
68
74
 
69
- desc 'Preform special seed tasks required on intial seed'
75
+ desc 'Perform special seed tasks required on intial seed'
70
76
  task :initial do
71
77
  on roles(:web) do
72
78
  invoke('deploy:check:directories')
@@ -74,7 +80,7 @@ namespace :deploy do
74
80
  invoke('deploy:check:make_linked_dirs')
75
81
  invoke('deploy:wp_config')
76
82
  invoke('deploy:upload_wp')
77
- invoke('deploy:upload_content')
83
+ invoke('deploy:upload_uploads')
78
84
  invoke('deploy')
79
85
  invoke('db:seed')
80
86
  end
@@ -1,5 +1,5 @@
1
1
  # config valid only for current version of Capistrano
2
- lock "3.9.0"
2
+ lock "3.9.1"
3
3
 
4
4
 
5
5
  require 'yaml'
data/wslave.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'wslave'
3
- s.version = '0.0.7'
3
+ s.version = '0.0.8'
4
4
  s.licenses = ['GPL-3.0', 'AGPL-3.0']
5
5
  s.summary = '"Word Slave" generates and controls a WordPress installation'
6
6
  s.description = 'Word Slave includes the wslave command and a control library to generate a ' \
@@ -22,6 +22,6 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.add_dependency 'thor'
24
24
  s.add_dependency 'haikunator'
25
- s.add_dependency 'capistrano', '~> 3.9.0'
25
+ s.add_dependency 'capistrano', '= 3.9.1'
26
26
  s.add_dependency 'capistrano-git-with-submodules', '~> 2.0'
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wslave
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rei Kagetsuki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-10 00:00:00.000000000 Z
11
+ date: 2017-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: capistrano
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 3.9.0
47
+ version: 3.9.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 3.9.0
54
+ version: 3.9.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: capistrano-git-with-submodules
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -84,6 +84,8 @@ files:
84
84
  - base/config/deploy-tools/wp-config.php.erb
85
85
  - base/config/deploy-tools/wp-config.php.local
86
86
  - base/config/deploy.rb
87
+ - base/config/deploy/.production.rb.swp
88
+ - base/config/deploy/.staging.rb.swp
87
89
  - base/config/deploy/production.rb
88
90
  - base/config/deploy/staging.rb
89
91
  - base/docker-compose.yml