elasticsearch-api/api-spec-testing/test_file/task_group.rb
# Run the actions in the task group.
#
# @example Run the actions
#   task_group.run(client)
#
# @param [ Elasticsearch::Client ] client The client to use to run the actions.
#
# @return [ self ]
#
# @since 6.2.0
Run the actions in the task group.
Run the actions in the task group .
def run(client)
            return if @executed
            @executed = true
            do_actions.inject(client) do |_client, action|
              action.execute(_client, test)
              set_variable(action)
              transform_and_set_variable(action)
              _client
            end
            self
          rescue => ex
            raise ex unless catch_exception?
            @exception = ex
          end
def run ( client ) return if @executed @executed = true do_actions . inject ( client ) do | _client , action | action . execute ( _client , test ) set_variable ( action ) transform_and_set_variable ( action ) _client end self rescue => ex raise ex unless catch_exception? @exception = ex end
Run the actions in the task group.
Run the actions in the task group .
# Allow the actions to be execute only once. # Cache the result of the action, if a set action is defined. # Cache the exception raised as a result of the operation, if the task group has a 'catch' defined.
None
 self 
client
client The client to use to run the actions.
client The client to use to run the actions .
example
Run the actions task_group.run(client)
Run the actions task_group . run ( client )
since
None