Skip to Content Skip to Search
Methods
G
N
S

Attributes

[R] tasks

Class Public methods

new(&block)

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

Instance Public methods

group(name, **options, &block)

# File activesupport/lib/active_support/continuous_integration/group.rb, line 20
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)
  @tasks << [:group, name, block]
end

step(title, *command)

# File activesupport/lib/active_support/continuous_integration/group.rb, line 16
def step(title, *command)
  @tasks << [:step, title, command]
end