Skip to Content Skip to Search
Methods
G
N
S

Attributes

[R] tasks

Class Public methods

new(ci, group_selected:, &block)

# File activesupport/lib/active_support/continuous_integration/group.rb, line 11
def initialize(ci, group_selected:, &block)
  @ci = ci
  @group_selected = group_selected
  @tasks = []
  instance_eval(&block)
end

Instance Public methods

group(name, **options, &block)

# File activesupport/lib/active_support/continuous_integration/group.rb, line 24
def group(name, **options, &block)
  raise ArgumentError, "Sub-groups cannot be parallelized. Remove the `parallel:` option from the #{name.inspect} group." if options.key?(:parallel)

  group_selected = @ci.selected_group?(name, parent_selected: @group_selected)
  @tasks << [:group, name, [group_selected, block]]
end

step(title, *command)

# File activesupport/lib/active_support/continuous_integration/group.rb, line 18
def step(title, *command)
  if @ci.selected_step?(title, group_selected: @group_selected)
    @tasks << [:step, title, command]
  end
end