eycap 0.5.12 → 0.5.13
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -0
- data/lib/eycap.rb +1 -1
- data/lib/eycap/recipes/deploy.rb +0 -25
- metadata +3 -3
data/History.txt
CHANGED
data/lib/eycap.rb
CHANGED
data/lib/eycap/recipes/deploy.rb
CHANGED
@@ -123,31 +123,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
123
123
|
run "if [ -f #{shared_path}/system/maintenance.html.custom ]; then cp #{shared_path}/system/maintenance.html.custom #{maint_file}; else cp #{shared_path}/system/maintenance.html.tmp #{maint_file}; fi"
|
124
124
|
end
|
125
125
|
end
|
126
|
-
|
127
|
-
namespace :notify do
|
128
|
-
task :start, :roles => :app do
|
129
|
-
return # disable weather for now. eycap >= 0.5.12
|
130
|
-
begin
|
131
|
-
run %(curl -X POST -d "application=#{application rescue 'unknown'}" http://weather.engineyard.com/`hostname`/deploy_start -fs)
|
132
|
-
rescue
|
133
|
-
puts "Warning: We couldn't notify EY of your deploy, but don't worry, everything is fine"
|
134
|
-
end
|
135
|
-
end
|
136
|
-
|
137
|
-
task :stop, :roles => :app do
|
138
|
-
return # disable weather for now. 0.5.12
|
139
|
-
begin
|
140
|
-
run %(curl -X POST -d "application=#{application rescue 'unknown'}" http://weather.engineyard.com/`hostname`/deploy_stop -fs)
|
141
|
-
rescue
|
142
|
-
puts "Warning: We couldn't notify EY of your deploy finishing, but don't worry, everything is fine"
|
143
|
-
end
|
144
|
-
end
|
145
|
-
end
|
146
|
-
end
|
147
|
-
|
148
|
-
["deploy", "deploy:long"].each do |tsk|
|
149
|
-
before(tsk, "deploy:notify:start")
|
150
|
-
after(tsk, "deploy:notify:stop")
|
151
126
|
end
|
152
127
|
|
153
128
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eycap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 13
|
10
|
+
version: 0.5.13
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Engine Yard
|