Class: Workhorse::Jobs::RunRailsOp
- Inherits:
-
Object
- Object
- Workhorse::Jobs::RunRailsOp
- Defined in:
- lib/workhorse/jobs/run_rails_op.rb
Instance Method Summary collapse
-
#initialize(cls, params = {}) ⇒ RunRailsOp
constructor
A new instance of RunRailsOp.
- #job_class ⇒ Object
- #perform ⇒ Object
Constructor Details
#initialize(cls, params = {}) ⇒ RunRailsOp
Returns a new instance of RunRailsOp.
3 4 5 6 |
# File 'lib/workhorse/jobs/run_rails_op.rb', line 3 def initialize(cls, params = {}) @cls = cls @params = params end |
Instance Method Details
#job_class ⇒ Object
8 9 10 |
# File 'lib/workhorse/jobs/run_rails_op.rb', line 8 def job_class @cls end |
#perform ⇒ Object
12 13 14 |
# File 'lib/workhorse/jobs/run_rails_op.rb', line 12 def perform @cls.run!(@params) end |