Module: OpenAPISourceTools::TaskInterface
- Included in:
- HelperTask, RestoreProcessorStorage, Task, WriteTask
- Defined in:
- lib/openapi/sourcetools/task.rb
Overview
Required interface for tasks, with default implementation for some methods.
Instance Method Summary collapse
- #discard ⇒ Object
- #executable ⇒ Object
- #generate(context_binding) ⇒ Object
- #output_name ⇒ Object
- #system ⇒ Object
Instance Method Details
#discard ⇒ Object
22 23 24 |
# File 'lib/openapi/sourcetools/task.rb', line 22 def discard false end |
#executable ⇒ Object
26 27 28 |
# File 'lib/openapi/sourcetools/task.rb', line 26 def executable false end |
#generate(context_binding) ⇒ Object
14 15 16 |
# File 'lib/openapi/sourcetools/task.rb', line 14 def generate(context_binding) raise NotImplementedError end |
#output_name ⇒ Object
18 19 20 |
# File 'lib/openapi/sourcetools/task.rb', line 18 def output_name raise NotImplementedError end |
#system ⇒ Object
30 31 32 |
# File 'lib/openapi/sourcetools/task.rb', line 30 def system false end |