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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93678ce6a49ad4b3e073fc722ba316e30f7245a3
4
- data.tar.gz: 16d1cd7abeebe961b1f03c21020c7dfc7280d476
3
+ metadata.gz: f518ea0d54bd7028a1da6e51b8e993e3977b4278
4
+ data.tar.gz: 960911437fd7fe1a6528a6be8b71cfe3f861c3a2
5
5
  SHA512:
6
- metadata.gz: 88fe12ac8e82f8255cd54ac29d053f4b506f7689fb5314cd2f67c59390910a14894418f1a0795f10ccb01b75ffd4a5e122c09837a439686b9d5ee70c2d12530d
7
- data.tar.gz: 49b3351d4aac0f4315163932076a6eee684d7020bed4b95fb90c23b1867f18a70d04083201278aa7e8bc700ce4f8a26024325b8ccdf6ae21c48ad907c981dba4
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
- ```ruby
32
- set :project_url, "https://github.com/company/project_x"
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/[my-github-username]/capistrano-skype/fork )
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`)
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Skype
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-skype
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduard Litau