capistrano-slack-mp 0.1.0 → 0.1.1
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/CHANGELOG.md +12 -0
- data/README.md +5 -3
- data/capistrano-slack-mp.gemspec +1 -1
- data/lib/capistrano/slack/version.rb +1 -1
- data/lib/capistrano/tasks/slack.rake +7 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ea5cb1100610d2a6fbff1f33e37c83182ec1009
|
4
|
+
data.tar.gz: a4623f2a016fb0178fae4aa12fa3dbc4d314a817
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4ee25917628082a23008dc8af7c7f193dad1ad084cfa696996b0f574a2634c34b6812fc53739d0d04f3bee44a66744b05f21d1656c3701598b515e6ac759d29
|
7
|
+
data.tar.gz: 3f19cd7da9bdba9c46611fb54279550579194a5bb1346cb80f56c4535eaf0d0c892d7670fa0dea64d50ceb6619402a4131dc7e31ad2fae9aaf1530e54db6f3ea
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -25,16 +25,18 @@ Please note that any `require` should be placed in `Capfile`, not `config/deploy
|
|
25
25
|
|
26
26
|
# config/deploy.rb
|
27
27
|
set :slack_team, 'your team' # Required
|
28
|
-
set :
|
28
|
+
set :slack_token, 'your token' # Required
|
29
29
|
|
30
30
|
set :slack_channel, '#general' # Optional
|
31
31
|
set :slack_username, 'capistranobot' # Optional
|
32
32
|
|
33
|
-
You need to
|
33
|
+
You need to add the integration in Slack. You should check out the [Slack Incoming WebHooks documentation](https://my.slack.com/services/new/incoming-webhook) for finding out parameters.
|
34
|
+
|
35
|
+
`:slack_channel` and `:slack_username` are optional. If you do not specify, these parameters are used Slack integration settings.
|
34
36
|
|
35
37
|
## Contributing
|
36
38
|
|
37
|
-
1. Fork it ( http://github.com
|
39
|
+
1. Fork it ( http://github.com/misopeso/capistrano-slack-mp/fork )
|
38
40
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
39
41
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
40
42
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/capistrano-slack-mp.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["kuprij@mac.com"]
|
11
11
|
spec.summary = %q{Capistrano integration for Slack.}
|
12
12
|
spec.description = %q{Capistrano integration for Slack.}
|
13
|
-
spec.homepage = ""
|
13
|
+
spec.homepage = "https://github.com/misopeso/capistrano-slack-mp"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
@@ -13,7 +13,11 @@ namespace :deploy do
|
|
13
13
|
if slack_token.nil? || slack_team.nil?
|
14
14
|
error ":slack_token and :slack_team are required."
|
15
15
|
else
|
16
|
-
|
16
|
+
application = fetch(:application)
|
17
|
+
branch = fetch(:branch)
|
18
|
+
stage = fetch(:stage, :production)
|
19
|
+
|
20
|
+
message = "#{application}(branch: #{branch}) has deployed successfully to #{stage} by #{local_user}"
|
17
21
|
|
18
22
|
options = {}
|
19
23
|
options[:channel] = slack_channel unless slack_channel.nil?
|
@@ -21,6 +25,8 @@ namespace :deploy do
|
|
21
25
|
|
22
26
|
notifier = Capistrano::Slack::Notifier.new(slack_team, slack_token)
|
23
27
|
notifier.notify(message, options)
|
28
|
+
|
29
|
+
info "Send notification message to Slack."
|
24
30
|
end
|
25
31
|
end
|
26
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-slack-mp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- URAMOTO Kazunori
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -74,6 +74,7 @@ extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
76
|
- ".gitignore"
|
77
|
+
- CHANGELOG.md
|
77
78
|
- Gemfile
|
78
79
|
- LICENSE.txt
|
79
80
|
- README.md
|
@@ -84,7 +85,7 @@ files:
|
|
84
85
|
- lib/capistrano/slack/notifier.rb
|
85
86
|
- lib/capistrano/slack/version.rb
|
86
87
|
- lib/capistrano/tasks/slack.rake
|
87
|
-
homepage:
|
88
|
+
homepage: https://github.com/misopeso/capistrano-slack-mp
|
88
89
|
licenses:
|
89
90
|
- MIT
|
90
91
|
metadata: {}
|