Method: Puppet::Interface::Action#when_invoked

Defined in:
lib/puppet/interface/action.rb

#when_invokedblock

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.

The block that is executed when the action is invoked

Returns:

  • (block)


225
226
227
# File 'lib/puppet/interface/action.rb', line 225

def when_invoked
  @when_invoked
end