Skip to content
Dan Ryan edited this page Sep 13, 2012 · 1 revision

Attributes

  • name (String) - The name of the job.
  • definition (String) - The name of the definition that this job will launch.
  • fields (Hash) - The initial attributes used by the definition, and ultimately each participant.

Example job

job = Job.new({
  name: "do the needful",
  definition: "execute remote ssh",
  fields: {
    host: "db-master.example.com",
    user: "root",
    key_data: "-----BEGIN RSA PRIVATE KEY-----\n-----END RSA PRIVATE KEY-----"
    command: "rm -rf /"
  }
})
Clone this wiki locally