talking-capistrano 0.1.7 → 0.1.8
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.
- data/lib/talking-capistrano.rb +5 -4
- data/lib/talking-capistrano/version.rb +1 -1
- metadata +2 -2
data/lib/talking-capistrano.rb
CHANGED
|
@@ -57,7 +57,7 @@ module TalkingCapistrano
|
|
|
57
57
|
private
|
|
58
58
|
|
|
59
59
|
def self.get_item(arr)
|
|
60
|
-
@DATA_SET[arr.to_s].
|
|
60
|
+
@DATA_SET[arr.to_s].sample
|
|
61
61
|
end
|
|
62
62
|
end
|
|
63
63
|
|
|
@@ -73,7 +73,7 @@ Capistrano::Configuration.instance.load do
|
|
|
73
73
|
`#{say_command} #{TalkingCapistrano::say_deploy_started fetch(:branch, nil)} -v '#{TalkingCapistrano::say_speaker_name}' &`
|
|
74
74
|
end
|
|
75
75
|
task :setup do
|
|
76
|
-
TalkingCapistrano.local_rails_env = fetch(:stage, "-unknown env-")
|
|
76
|
+
TalkingCapistrano.local_rails_env = fetch(:stage, "-unknown env-").to_s
|
|
77
77
|
end
|
|
78
78
|
end
|
|
79
79
|
end
|
|
@@ -82,8 +82,9 @@ Capistrano::Configuration.instance.load do
|
|
|
82
82
|
namespace :deploy do
|
|
83
83
|
task :update_code, :except => { :no_release => true } do
|
|
84
84
|
on_rollback do
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
fail_str = TalkingCapistrano::say_deploy_failed
|
|
86
|
+
`#{say_command} #{fail_str} -v #{TalkingCapistrano::say_speaker_name} &`;
|
|
87
|
+
TalkingCapistrano::SkypeNotification.notify(fail_str)
|
|
87
88
|
run "rm -rf #{release_path}; true"
|
|
88
89
|
end
|
|
89
90
|
strategy.deploy!
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: talking-capistrano
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.8
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-02-
|
|
12
|
+
date: 2013-02-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: Capisrano task to notify start|end|erros of a capistrano deploy execution
|
|
15
15
|
email:
|