module Minicron::Transport

The transport module deals with interactions between the server and client

Public Class Methods

get_job_hash(command, fqdn) click to toggle source

Calculate the job hash based on the command and host

@param command [String] the job command e.g 'ls -la' @param fqdn [String] the fqdn of the server running the job e.g `db1.example.com`

# File lib/minicron/transport.rb, line 10
def self.get_job_hash(command, fqdn)
  Digest::MD5.hexdigest(command + fqdn)
end