lib/salus.rb
def heartbeat(time)
      Thread.new do
        loop do
          puts "[INFORMATIONAL: #{Time.now}]: Salus is running."
          sleep time
        end
      end
    end
# This method spawns a thread in order to print a heartbeat
This method spawns a thread in order to print a heartbeat
This method spawns a thread in order to print a heartbeat
def heartbeat(time)
      Thread.new do
        loop do
          puts "[INFORMATIONAL: #{Time.now}]: Salus is running."
          sleep time
        end
      end
    end
def heartbeat ( time ) Thread . new do loop do puts "[INFORMATIONAL: #{Time.now}]: Salus is running." sleep time end end end
This method spawns a thread in order to print a heartbeat
This method spawns a thread in order to print a heartbeat
time