capistrano-nc 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/capistrano-nc.gemspec +1 -1
- data/lib/capistrano-nc.rb +14 -8
- metadata +2 -2
data/README.md
CHANGED
data/capistrano-nc.gemspec
CHANGED
data/lib/capistrano-nc.rb
CHANGED
@@ -11,18 +11,24 @@ module CapistranoNc
|
|
11
11
|
|
12
12
|
namespace :nc do
|
13
13
|
task :finished do
|
14
|
-
|
14
|
+
if available?
|
15
|
+
announced_stage = fetch(:stage, 'production')
|
15
16
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
17
|
+
announcement = "\u2705 Successfully deployed "
|
18
|
+
announcement += if fetch(:branch, nil)
|
19
|
+
"#{application}'s #{branch} to #{announced_stage}"
|
20
|
+
else
|
21
|
+
"#{application} to #{announced_stage}"
|
22
|
+
end
|
22
23
|
|
23
|
-
|
24
|
+
TerminalNotifier.notify announcement, :title => "Capistrano"
|
25
|
+
end
|
24
26
|
end
|
25
27
|
end
|
28
|
+
|
29
|
+
def available?
|
30
|
+
`uname`.strip == 'Darwin' && `sw_vers -productVersion`.strip >= '10.8'
|
31
|
+
end
|
26
32
|
end
|
27
33
|
end
|
28
34
|
end
|