Class: DeadmanCheck::DeadmanCheckGlobal
- Inherits:
-
Object
- Object
- DeadmanCheck::DeadmanCheckGlobal
- Defined in:
- lib/deadman_check_global.rb
Instance Method Summary collapse
Instance Method Details
#configure_diplomat(host, port) ⇒ Object
12 13 14 15 16 |
# File 'lib/deadman_check_global.rb', line 12 def configure_diplomat(host, port) Diplomat.configure do |config| config.url = "http://#{host}:#{port}" end end |
#get_epoch_time ⇒ Object
7 8 9 10 |
# File 'lib/deadman_check_global.rb', line 7 def get_epoch_time epoch_time_now = Time.now.to_i return epoch_time_now end |