class FeduxOrgStdlib::Rake::SubTask

Sub Task

This class can be used to call other defined rake-tasks

@see Rakefile

Attributes

sub_tasks[R]

@!attribute [r] command

The command to be executed

Public Class Methods

new( sub_tasks:, **args ) click to toggle source

Create a new sub task task

@param [Array] sub_tasks

A list of sub tasks, e.g. 'namespace1:task1', 'task2'
Calls superclass method
# File lib/fedux_org_stdlib/rake/sub_task.rb, line 20
def initialize(
  sub_tasks:,
  **args
)
  super(**args)

  @sub_tasks = Array(sub_tasks)
end

Public Instance Methods

run_task(_verbose) click to toggle source

@private

# File lib/fedux_org_stdlib/rake/sub_task.rb, line 30
def run_task(_verbose)
  sub_tasks.each { |t| ::Rake::Task[t].invoke }
end