Class: GitCompound::Command::Procedure::Tasks

Inherits:
GitCompound::Command::Procedure show all
Includes:
Element::Manifest, Element::Option
Defined in:
lib/git_compound/command/procedure/tasks.rb

Overview

Check command procedure class

Instance Method Summary collapse

Methods included from Element::Option

included, #initialize

Methods included from Element::Manifest

included, #initialize

Instance Method Details

#executeObject

add_parameter :list, type: Argument::StringBoolean



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/git_compound/command/procedure/tasks.rb', line 13

def execute
  Logger.info 'Running tasks ...'

  if @opts[:allow_nested_subtasks]
    @manifest.process(Worker::TaskRunner.new)
  else
    @manifest.tasks.each_value do |task|
      Worker::TaskRunner.new.visit_task(task)
    end
  end
end