lifeboat 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/lifeboat.rb +12 -2
- data/lifeboat.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.3
|
data/lib/lifeboat.rb
CHANGED
@@ -71,7 +71,12 @@ module LifeBoat
|
|
71
71
|
if RAILS_ENV == "testing"
|
72
72
|
self.destroy_lifeboat
|
73
73
|
else
|
74
|
-
|
74
|
+
begin
|
75
|
+
Resque.enqueue(RescateLifeBoat, :destroy_lifeboat, self.class.name, self.id)
|
76
|
+
rescue => e
|
77
|
+
puts "Captain! There was a problem sending the Lifeboats"
|
78
|
+
puts e
|
79
|
+
end
|
75
80
|
end
|
76
81
|
end
|
77
82
|
|
@@ -79,7 +84,12 @@ module LifeBoat
|
|
79
84
|
if RAILS_ENV == "testing"
|
80
85
|
self.update_lifeboat
|
81
86
|
else
|
82
|
-
|
87
|
+
begin
|
88
|
+
Resque.enqueue(RescateLifeBoat, :update_lifeboat ,self.class.name, self.id)
|
89
|
+
rescue => e
|
90
|
+
puts "Captain! There was a problem sending the Lifeboats"
|
91
|
+
puts e
|
92
|
+
end
|
83
93
|
end
|
84
94
|
end
|
85
95
|
end
|
data/lifeboat.gemspec
CHANGED