capistrano-wearerequired 1.0.0 → 1.1.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d90f1081fc7aaec443723334fcf71297ad403006
|
4
|
+
data.tar.gz: e2e7b12e93bc91f0603a96919dd6ff40fa0d77c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34da2852badf17ab982022675137d38a8b8435994392a2d142a3ea89e07db9776f8bc2b1e6c830589d891dec086c142f2b65081bdc0821b6ea8c8b9741e3dd23
|
7
|
+
data.tar.gz: fcd6f5d290fd9f9f26b443de0d0785edbc88457d5aff054d23b6c67e0fd0e50569827023e8ef250b7371bd0f680961cf19e0d1a321aded6b2881200ac8ccb125
|
data/README.md
CHANGED
@@ -54,6 +54,8 @@ set :slackistrano, {
|
|
54
54
|
}
|
55
55
|
```
|
56
56
|
|
57
|
+
![image](https://user-images.githubusercontent.com/1785641/30828166-73a570be-a245-11e7-8e1e-9eda33719179.png)
|
58
|
+
|
57
59
|
### Expanded Git Messaging for Slackistrano
|
58
60
|
|
59
61
|
The class `SlackistranoExpandedGitMessaging` adds a link to the current diff, the current revision and branch, the name of the deployer and suppresses update messages. `SlackistranoExpandedGitMessaging` extends `SlackistranoMessagingColors`.
|
@@ -67,6 +69,8 @@ set :slackistrano, {
|
|
67
69
|
}
|
68
70
|
```
|
69
71
|
|
72
|
+
![image](https://user-images.githubusercontent.com/1785641/30828269-c5e55fc4-a245-11e7-8ac9-94cf299ef5a3.png)
|
73
|
+
|
70
74
|
See [Customizing the Messaging](https://github.com/phallstrom/slackistrano/tree/v3.1.0#customizing-the-messaging) for more information.
|
71
75
|
|
72
76
|
### Additional tasks
|
@@ -100,7 +104,7 @@ To **update WordPress translations** run:
|
|
100
104
|
cap staging wordpress: update_translations
|
101
105
|
```
|
102
106
|
|
103
|
-
To **clear OPcache** of your site set
|
107
|
+
To **clear OPcache** of your site `set :wp_clear_opcache, true` and run:
|
104
108
|
|
105
109
|
```
|
106
110
|
cap staging wordpress:clear_opcache
|
@@ -111,13 +115,19 @@ cap staging wordpress:clear_opcache
|
|
111
115
|
|
112
116
|
## Changelog
|
113
117
|
|
118
|
+
### 1.1.0
|
119
|
+
|
120
|
+
* Support WP-CLI 1.2.0 and newer
|
121
|
+
In WP-CLI v1.2.0 the `wp core language` command was changed to `wp language core`.
|
122
|
+
* Get deployer's name from Git config in `SlackistranoMessagingElements`
|
123
|
+
|
114
124
|
### 1.0.0
|
115
125
|
|
116
126
|
* Renamed to `Capistrano::Wearerequired` and published on [rubygems.org](https://rubygems.org/gems/capistrano-wearerequired).
|
117
127
|
* Added `wordpress:clear_opcache` task.
|
118
128
|
* Added new messaging classes for Slackistrano for more informative notifications.
|
119
|
-
|
120
|
-
|
129
|
+
* Moved support for custom icon (via `icon_url` or `icon_emoji`) and bot name (via `username`) to its own class `SlackistranoMessagingElements`.
|
130
|
+
* `SlackistranoExpandedGitMessaging` extends `SlackistranoMessagingColors` which extends `SlackistranoMessagingElements`.
|
121
131
|
|
122
132
|
### 0.3.0
|
123
133
|
|
@@ -31,6 +31,14 @@ module Capistrano
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
+
# Override the deployer helper to pull the best name available (git, password file, env vars).
|
35
|
+
def deployer
|
36
|
+
name = `git config user.name`.strip.split.first
|
37
|
+
name = nil if name.empty?
|
38
|
+
name ||= Etc.getpwnam(ENV['USER']).gecos || ENV['USER'] || ENV['USERNAME']
|
39
|
+
name
|
40
|
+
end
|
41
|
+
|
34
42
|
end
|
35
43
|
end
|
36
44
|
end
|
@@ -9,7 +9,7 @@ namespace :wordpress do
|
|
9
9
|
on roles(:app) do
|
10
10
|
within release_path do
|
11
11
|
fetch(:wp_languages).each do |language|
|
12
|
-
execute :wp, "core
|
12
|
+
execute :wp, "language core install #{language}"
|
13
13
|
end
|
14
14
|
end
|
15
15
|
end
|
@@ -23,7 +23,7 @@ namespace :wordpress do
|
|
23
23
|
|
24
24
|
on roles(:app) do
|
25
25
|
within release_path do
|
26
|
-
execute :wp, "core
|
26
|
+
execute :wp, "language core update"
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-wearerequired
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- wearerequired
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2017-
|
14
|
+
date: 2017-11-02 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: capistrano
|
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
version: '0'
|
129
129
|
requirements: []
|
130
130
|
rubyforge_project:
|
131
|
-
rubygems_version: 2.6.
|
131
|
+
rubygems_version: 2.6.14
|
132
132
|
signing_key:
|
133
133
|
specification_version: 4
|
134
134
|
summary: Recipes for Capistrano used by required gmbh
|