Method: PDK::CLI::ExecGroup#register

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

#register(&_block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Register something to execute as a group

Parameters:

  • block (Block)

    A block of ruby to execute

Raises:



40
41
42
# File 'lib/pdk/cli/exec_group.rb', line 40

def register(&_block)
  raise PDK::CLI::FatalError, _('No block registered') unless block_given?
end