Class: FeduxOrgStdlib::Rake::SubTask
- Defined in:
- lib/fedux_org_stdlib/rake/sub_task.rb
Overview
Sub Task
This class can be used to call other defined rake-tasks
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
The command to be executed.
-
#sub_tasks ⇒ Object
readonly
Returns the value of attribute sub_tasks.
Attributes inherited from Task
#description, #name, #verbose, #verbose (true)
Instance Method Summary collapse
-
#initialize(sub_tasks:, **args) ⇒ SubTask
constructor
Create a new sub task task.
- #run_task(_verbose) ⇒ Object
Methods inherited from Task
Constructor Details
Instance Attribute Details
#command ⇒ Object (readonly)
The command to be executed
14 |
# File 'lib/fedux_org_stdlib/rake/sub_task.rb', line 14 attr_reader :sub_tasks |
#sub_tasks ⇒ Object (readonly)
Returns the value of attribute sub_tasks.
14 15 16 |
# File 'lib/fedux_org_stdlib/rake/sub_task.rb', line 14 def sub_tasks @sub_tasks end |
Instance Method Details
#run_task(_verbose) ⇒ Object
30 31 32 |
# File 'lib/fedux_org_stdlib/rake/sub_task.rb', line 30 def run_task(_verbose) sub_tasks.each { |t| ::Rake::Task[t].invoke } end |