Method: PDK::CLI::ExecGroup.create

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

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

Execution Group (ExecGroup) factory.

Options Hash (create_options):

  • :parallel (Boolean)

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



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