ey_stonith 0.3.4 → 0.3.5
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/bin/stonith-cron +1 -0
- data/lib/ey_stonith.rb +6 -1
- metadata +3 -3
data/bin/stonith-cron
CHANGED
data/lib/ey_stonith.rb
CHANGED
|
@@ -26,7 +26,12 @@ module EY
|
|
|
26
26
|
HEALTH_PATH = '/health' unless defined? HEALTH_PATH
|
|
27
27
|
TAKEOVER_PATH = '/takeover' unless defined? TAKEOVER_PATH
|
|
28
28
|
|
|
29
|
-
def self.log_to(io)
|
|
29
|
+
def self.log_to(io)
|
|
30
|
+
@@logger = Logger.new io
|
|
31
|
+
logger.progname = ENV['CRON'] ? "(cron)" : "(#{`whoami`.chomp})"
|
|
32
|
+
logger
|
|
33
|
+
end
|
|
34
|
+
|
|
30
35
|
def self.logger() @@logger end
|
|
31
36
|
|
|
32
37
|
### For Rackapp ###
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 3
|
|
8
|
-
-
|
|
9
|
-
version: 0.3.
|
|
8
|
+
- 5
|
|
9
|
+
version: 0.3.5
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Ezra Zygmuntowicz
|
|
@@ -16,7 +16,7 @@ autorequire:
|
|
|
16
16
|
bindir: bin
|
|
17
17
|
cert_chain: []
|
|
18
18
|
|
|
19
|
-
date: 2010-
|
|
19
|
+
date: 2010-07-14 00:00:00 -07:00
|
|
20
20
|
default_executable:
|
|
21
21
|
dependencies:
|
|
22
22
|
- !ruby/object:Gem::Dependency
|