Method: PDK::CLI::ExecGroup.create

Defined in:
lib/pdk/cli/exec_group.rb

.create(message, create_options = {}, group_opts = {}) ⇒ ExecGroup

Execution Group (ExecGroup) factory.

Parameters:

  • message (String)

    A name or message for this group. Provided for backwards compatibility during refactor

  • create_options (Hash) (defaults to: {})

    A hash options used during creation of the ExecGroup. This are not passed to the new object

  • group_opts (Hash) (defaults to: {})

    A hash of options used to configure the execution group. Provided for backwards compatibility during refactor

Options Hash (create_options):

  • :parallel (Boolean)

    Whether the group should be executed in Parallel (True) or Serial (False)

Returns:



16
17
18
19
20
21
22
# File 'lib/pdk/cli/exec_group.rb', line 16

def self.create(message, create_options = {}, group_opts = {})
  if create_options[:parallel]
    ParallelExecGroup.new(message, group_opts)
  else
    SerialExecGroup.new(message, group_opts)
  end
end