Module: Minicron::Transport

Defined in:
lib/minicron/transport.rb,
lib/minicron/transport/ssh.rb,
lib/minicron/transport/server.rb,
lib/minicron/transport/client.rb,
lib/minicron/transport/faye/server.rb,
lib/minicron/transport/faye/client.rb,
lib/minicron/transport/faye/extensions/job_handler.rb

Overview

The transport module deals with interactions between the server and client

Defined Under Namespace

Classes: Client, FayeClient, FayeJobHandler, FayeServer, SSH, Server

Class Method Summary collapse

Class Method Details

.get_job_hash(command, fqdn) ⇒ Object

Calculate the job hash based on the command and host

Parameters:

  • command (String)

    the job command e.g 'ls -la'

  • fqdn (String)

    the fqdn of the server running the job e.g `db1.example.com`


11
12
13
# File 'lib/minicron/transport.rb', line 11

def self.get_job_hash(command, fqdn)
  Digest::MD5.hexdigest(command + fqdn)
end