class MultiScheduler::Schedule

Attributes

command[R]
command_arguments[R]
identifier[R]

Public Class Methods

new(id, options = {}) click to toggle source
# File lib/multi_scheduler/schedule.rb, line 7
def initialize id, options = {}

  @identifier = id
  raise "identifier is required" unless @identifier

  @command_arguments = [ options[:args] ].flatten.compact
  @command = options[:command] || @command_arguments.shift
  raise "command is required" unless @command
end