Class: Lazylead::ORM::Task
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Lazylead::ORM::Task
- Includes:
- Lazylead::ORM
- Defined in:
- lib/lazylead/model.rb
Overview
General lazylead task.
Instance Method Summary collapse
- #exec(log = Log::NOTHING) ⇒ Object
- #postman(log = Log::NOTHING) ⇒ Object
- #props(log = Log::NOTHING) ⇒ Object
Methods included from Lazylead::ORM
#env, #inspect, #to_hash, #to_s
Instance Method Details
#exec(log = Log::NOTHING) ⇒ Object
91 92 93 94 95 96 97 |
# File 'lib/lazylead/model.rb', line 91 def exec(log = Log::NOTHING) log.debug("Task ##{id} '#{name}' is started") action.constantize .new(log) .run(system.connect(log), postman(log), props(log)) log.debug("Task ##{id} '#{name}' is completed") end |