Class: Reactor::Plans::CommonJob

Inherits:
Object
  • Object
show all
Includes:
Prepared
Defined in:
lib/reactor/plans/common_job.rb

Direct Known Subclasses

CreateJob, DeleteJob, UpdateJob

Constant Summary collapse

ALLOWED_PARAMS =
[:title, :is_active, :comment, :exec_login, :exec_perm, :schedule, :script]

Instance Method Summary collapse

Methods included from Prepared

#error, #separate_arguments

Constructor Details

#initializeCommonJob

Returns a new instance of CommonJob.



9
10
11
# File 'lib/reactor/plans/common_job.rb', line 9

def initialize
  @params = {}
end

Instance Method Details

#migrate!Object



17
18
19
# File 'lib/reactor/plans/common_job.rb', line 17

def migrate!
  raise "#{self.class.name} did not implement migrate!"
end

#set(key, value) ⇒ Object



13
14
15
# File 'lib/reactor/plans/common_job.rb', line 13

def set(key,value)
  @params[key.to_sym] = value
end