capistrano-skype 1.0.1 → 1.0.2
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/README.md +17 -7
- data/lib/capistrano/skype/version.rb +1 -1
- data/lib/capistrano/skype.rb +3 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f518ea0d54bd7028a1da6e51b8e993e3977b4278
|
4
|
+
data.tar.gz: 960911437fd7fe1a6528a6be8b71cfe3f861c3a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f034c1fc3052349de29a3990ccc2938eca4a22e5ce150ebdb23c2f3995098feea63d0723d807a97367711fd8b890b9aed3b7cdd92a8d3a074b09a8b7d8f36552
|
7
|
+
data.tar.gz: 6f0539e72b8601bb2dce28913702f1c7d3e96100b8dd1fef2875702599bca6f3f6fc6a65ade2c1099500b5a51c2824869b074ff092eae5b248022f034e466424
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Capistrano::Skype
|
2
2
|
|
3
|
-
Capistrano 3 tasks to notify deployments via skype. Currently works only on MacOS X.
|
3
|
+
Capistrano 3 tasks to notify deployments via skype. Currently works only on MacOS X via applescripts.
|
4
|
+
|
5
|
+
Wide parts of the code are based on Avner Cohens [talking-capistrano](https://github.com/fiverr/talking-capistrano).
|
4
6
|
|
5
7
|
## Installation
|
6
8
|
|
@@ -20,21 +22,29 @@ Or install it yourself as:
|
|
20
22
|
|
21
23
|
## Usage
|
22
24
|
|
23
|
-
Set ```skype_chat_name``` in your deploy.rb to define in which chat the notifications should be posted. If have a hosted repository like github, also set ```project_url``` to have links to the commit page in the notification.
|
25
|
+
Set ```skype_chat_name``` in your deploy.rb to define in which chat the notifications should be posted. If you have a hosted repository like github, also set ```project_url``` to have links to the commit page in the notification.
|
26
|
+
|
27
|
+
Alternatively it is possible to set custom messages for the ```deploy:started```, ```deploy:finished``` and ```deploy:rollback``` hooks. See example below.
|
24
28
|
|
25
29
|
### Example
|
26
30
|
|
27
31
|
```ruby
|
28
32
|
set :skype_chat_name, "Project X"
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
+
set :project_url, "https://github.com/company_x/project_y"
|
34
|
+
set :started_notification, "[#{fetch(:application)}]" \
|
35
|
+
"(#{fetch(:stage).upcase})" \
|
36
|
+
" Deploy started" \
|
37
|
+
" (F)"
|
38
|
+
set :finished_notification, -> { "Finished deploy of " \
|
39
|
+
" https://github.com/company_x/project_y/commit/#{fetch(:current_revision)}" \
|
40
|
+
" (#{fetch(:branch)})" \
|
41
|
+
" (sun)"
|
42
|
+
}
|
33
43
|
```
|
34
44
|
|
35
45
|
## Contributing
|
36
46
|
|
37
|
-
1. Fork it ( https://github.com/
|
47
|
+
1. Fork it ( https://github.com/elitau/capistrano-skype/fork )
|
38
48
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
39
49
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
40
50
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/capistrano/skype.rb
CHANGED
@@ -52,6 +52,7 @@ namespace :deploy do
|
|
52
52
|
desc 'Send deploy started'
|
53
53
|
task :started do
|
54
54
|
on roles(:all) do
|
55
|
+
info("Sending started notification to skype")
|
55
56
|
message = "[#{fetch(:application)}]" \
|
56
57
|
"(#{fetch(:stage).upcase})" \
|
57
58
|
" Deploy started"
|
@@ -71,6 +72,7 @@ namespace :deploy do
|
|
71
72
|
end
|
72
73
|
|
73
74
|
on roles(:all) do
|
75
|
+
info("Sending finished notification to skype")
|
74
76
|
message = "Finished deploy of " \
|
75
77
|
" #{commit_url(fetch(:current_revision))}" \
|
76
78
|
" (#{fetch(:branch)})"
|
@@ -82,6 +84,7 @@ namespace :deploy do
|
|
82
84
|
desc 'Send deploy rollback'
|
83
85
|
task :rollback do
|
84
86
|
on roles(:all) do
|
87
|
+
info("Sending rollback notification to skype")
|
85
88
|
message = "(doh) Deployment failed. Rolled back (doh)"
|
86
89
|
send_message(fetch(:rollback_notification) || message)
|
87
90
|
end
|