Class: Anvil::Task::Callback
- Inherits:
-
Object
- Object
- Anvil::Task::Callback
- Includes:
- Naming
- Defined in:
- lib/anvil/task/callback.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#task ⇒ Object
readonly
Returns the value of attribute task.
Instance Method Summary collapse
-
#initialize(task_name, options) ⇒ Callback
constructor
A new instance of Callback.
- #run ⇒ Object
Methods included from Naming
#description, #from_name, #get_namespace, #task_name
Constructor Details
#initialize(task_name, options) ⇒ Callback
Returns a new instance of Callback.
10 11 12 |
# File 'lib/anvil/task/callback.rb', line 10 def initialize(task_name, ) @task, = from_name(task_name), end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/anvil/task/callback.rb', line 8 def end |
#task ⇒ Object (readonly)
Returns the value of attribute task.
8 9 10 |
# File 'lib/anvil/task/callback.rb', line 8 def task @task end |
Instance Method Details
#run ⇒ Object
14 15 16 |
# File 'lib/anvil/task/callback.rb', line 14 def run task.new().run end |