slackistrano 4.0.1 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/README.md +20 -1
- data/lib/slackistrano/tasks/slack.rake +8 -6
- data/lib/slackistrano/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6360f02d5cef2b9905f62b56bc447c20f19ead2c2eb395c5d75fab47acac5b40
|
4
|
+
data.tar.gz: 5fc2245b992c98e4e48cbe8ba648d7a6b990947c054614acb6b4946dba848817
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c3eb27e2685c88ad3a6961ab78e9b568d13becdcfbac9a94f0b7bb51d43d7b91121acfab080718276efdffe6fd33900c0d6a0897079528c7e8020c7fac2b526
|
7
|
+
data.tar.gz: 53df379711d05ff2b08f0ec98d5b42ecfacb9f07790f6412839f039fd16230e677a46463c1945c2a747e2f544733e4d52baf6499ed2d265e675e5d06166ef647
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Slackistrano Change Log
|
2
2
|
|
3
|
+
4.0.2
|
4
|
+
-----
|
5
|
+
|
6
|
+
- Make it possible to overwrite all slackistrano hooks [#98]
|
7
|
+
|
3
8
|
4.0.1
|
4
9
|
-----
|
5
10
|
|
@@ -68,4 +73,3 @@
|
|
68
73
|
- **BREAKING:** Renamed all `***_starting` settings to `***_updating`
|
69
74
|
- **BREAKING:** Renamed all `***_finished` settings to `***_updated`
|
70
75
|
- Added rollback options `***_reverting` and `***_reverted` [#19, #31]
|
71
|
-
|
data/README.md
CHANGED
@@ -100,6 +100,25 @@ $ cap production slack:deploy:test
|
|
100
100
|
Deploy your application like normal and you should see messages in the channel
|
101
101
|
you specified.
|
102
102
|
|
103
|
+
## Customizing the hooks
|
104
|
+
|
105
|
+
If you wish to take control over when and what slackistrano hooks are fired, then you can use the option in `deploy.rb`:
|
106
|
+
|
107
|
+
```ruby
|
108
|
+
set :use_custom_slackistrano_hooks, true
|
109
|
+
```
|
110
|
+
|
111
|
+
This allows you to set custom hooks for all the slackistrano tasks:
|
112
|
+
|
113
|
+
```ruby
|
114
|
+
'slack:deploy:starting'
|
115
|
+
'slack:deploy:updating'
|
116
|
+
'slack:deploy:reverting'
|
117
|
+
'slack:deploy:updated'
|
118
|
+
'slack:deploy:reverted'
|
119
|
+
'slack:deploy:failed'
|
120
|
+
```
|
121
|
+
|
103
122
|
## Customizing the Messaging
|
104
123
|
|
105
124
|
You can customize the messaging posted to Slack by providing your own messaging
|
@@ -221,7 +240,7 @@ To set this up:
|
|
221
240
|
|
222
241
|
## Disabling posting to Slack
|
223
242
|
|
224
|
-
You can disable deployment notifications to a specific stage by setting the `:slackistrano`
|
243
|
+
You can disable deployment notifications to a specific stage by setting the `:slackistrano`
|
225
244
|
configuration variable to `false` instead of actual settings.
|
226
245
|
|
227
246
|
```ruby
|
@@ -39,9 +39,11 @@ namespace :slack do
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
-
|
43
|
-
before 'deploy:
|
44
|
-
before 'deploy:
|
45
|
-
|
46
|
-
after 'deploy:
|
47
|
-
after 'deploy:
|
42
|
+
unless fetch(:use_custom_slackistrano_hooks, false)
|
43
|
+
before 'deploy:starting', 'slack:deploy:starting'
|
44
|
+
before 'deploy:updating', 'slack:deploy:updating'
|
45
|
+
before 'deploy:reverting', 'slack:deploy:reverting'
|
46
|
+
after 'deploy:finishing', 'slack:deploy:updated'
|
47
|
+
after 'deploy:finishing_rollback', 'slack:deploy:reverted'
|
48
|
+
after 'deploy:failed', 'slack:deploy:failed'
|
49
|
+
end
|
data/lib/slackistrano/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slackistrano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Hallstrom
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -104,7 +104,7 @@ homepage: https://github.com/phallstrom/slackistrano
|
|
104
104
|
licenses:
|
105
105
|
- MIT
|
106
106
|
metadata: {}
|
107
|
-
post_install_message:
|
107
|
+
post_install_message:
|
108
108
|
rdoc_options: []
|
109
109
|
require_paths:
|
110
110
|
- lib
|
@@ -119,8 +119,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
|
-
rubygems_version: 3.
|
123
|
-
signing_key:
|
122
|
+
rubygems_version: 3.4.10
|
123
|
+
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: Send notifications to Slack about Capistrano deployments.
|
126
126
|
test_files:
|