wslave 0.0.9 → 0.0.10
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/base/Capfile +20 -6
- data/base/config/.deploy.rb.swp +0 -0
- data/base/config/deploy.rb +9 -1
- data/templates/config/definitions.yml +2 -0
- data/wslave.gemspec +5 -3
- metadata +35 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba6ee752d365aeb960d4560e6f1fb5fdece0821a
|
4
|
+
data.tar.gz: a828906fb12e94bca09cda0443686f7fe8866431
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68e7f8d654e4a590a2c4160501199efa955883fd44e5f334613cbe807a0f489d739d87bf910392798d17ceff5bfa793c5879075d6fd04e0c2eaf9760858783e9
|
7
|
+
data.tar.gz: f2a5b72f3280e6d1e54cb0d9df0f5655b879314ff666789c5a4a044814308978610ccc61f1ebb62ba7659cce7b32a43f18690b22c20933376ff6b47dcce4ac7b
|
data/base/Capfile
CHANGED
@@ -1,10 +1,24 @@
|
|
1
|
-
require
|
1
|
+
require 'capistrano/setup'
|
2
|
+
require 'capistrano/deploy'
|
3
|
+
require 'yaml'
|
2
4
|
|
3
|
-
|
5
|
+
opts = YAML.load_file('config/definitions.yml')
|
4
6
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
7
|
+
deploy_method = 'git-with-submodules'
|
8
|
+
deploy_method = opts['options']['deploy_method'] if (opts.has_key?('options') &&
|
9
|
+
opts['options'].has_key?('deploy_method'))
|
10
|
+
|
11
|
+
case deploy_method
|
12
|
+
when 'scp'
|
13
|
+
require 'capistrano/copy'
|
14
|
+
when 'git'
|
15
|
+
require 'capistrano/scm/git'
|
16
|
+
install_plugin Capistrano::SCM::Git
|
17
|
+
else
|
18
|
+
require 'capistrano/scm/git'
|
19
|
+
install_plugin Capistrano::SCM::Git
|
20
|
+
require 'capistrano/scm/git-with-submodules'
|
21
|
+
install_plugin Capistrano::SCM::Git::WithSubmodules
|
22
|
+
end
|
9
23
|
|
10
24
|
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }
|
Binary file
|
data/base/config/deploy.rb
CHANGED
@@ -1,9 +1,17 @@
|
|
1
1
|
# config valid only for current version of Capistrano
|
2
2
|
lock "3.9.1"
|
3
3
|
|
4
|
-
|
5
4
|
require 'yaml'
|
6
5
|
opts = YAML.load_file('config/definitions.yml')
|
7
6
|
|
8
7
|
set :application, opts['app']['name']
|
9
8
|
set :repo_url, opts['app']['repo']
|
9
|
+
|
10
|
+
deploy_method = opts['options']['deploy_method'] if opts.has_key?('options') &&
|
11
|
+
opts['options'].has_key?('deploy_method')
|
12
|
+
|
13
|
+
case deploy_method
|
14
|
+
when 'scp'
|
15
|
+
set :scm, :copy
|
16
|
+
else
|
17
|
+
end
|
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.
|
3
|
+
s.version = '0.0.10'
|
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 ' \
|
@@ -20,8 +20,10 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.bindir = 'bin'
|
21
21
|
s.executables << 'wslave'
|
22
22
|
|
23
|
-
s.add_dependency 'thor'
|
24
|
-
s.add_dependency 'haikunator'
|
25
23
|
s.add_dependency 'capistrano', '= 3.9.1'
|
26
24
|
s.add_dependency 'capistrano-git-with-submodules', '~> 2.0'
|
25
|
+
s.add_dependency 'capistrano-scm-copy', '~> 0.7'
|
26
|
+
|
27
|
+
s.add_dependency 'thor', '~> 0.20'
|
28
|
+
s.add_dependency 'haikunator', '~> 1.1'
|
27
29
|
end
|
metadata
CHANGED
@@ -1,71 +1,85 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wslave
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
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-
|
11
|
+
date: 2017-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: capistrano
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 3.9.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 3.9.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: capistrano-git-with-submodules
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
33
|
+
version: '2.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
40
|
+
version: '2.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: capistrano
|
42
|
+
name: capistrano-scm-copy
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '0.7'
|
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:
|
54
|
+
version: '0.7'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: thor
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '0.20'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '0.20'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: haikunator
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.1'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.1'
|
69
83
|
description: Word Slave includes the wslave command and a control library to generate
|
70
84
|
a "best practice" WordPress installation and includes a pre-rolled Docker setup
|
71
85
|
for running a development server and a Capistrano setup for deployment.
|
@@ -79,6 +93,7 @@ files:
|
|
79
93
|
- base/Dockerfile
|
80
94
|
- base/Gemfile
|
81
95
|
- base/Rakefile
|
96
|
+
- base/config/.deploy.rb.swp
|
82
97
|
- base/config/deploy-tools/gen-salts.rb
|
83
98
|
- base/config/deploy-tools/gen-wp-config.rb
|
84
99
|
- base/config/deploy-tools/wp-config.php.erb
|