Class: AutomationHelpers::Patches::Base Private

Inherits:
Object
  • Object
show all
Defined in:
lib/automation_helpers/patches/base.rb

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

Instance Method Summary collapse

Instance Method Details

#patch!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.

api private (Not intended to be instantiated directly! Use the child classes)



12
13
14
15
16
17
18
# File 'lib/automation_helpers/patches/base.rb', line 12

def patch!
  raise 'This is no longer supported' if prevent_usage?

  Kernel.warn('This is now deprecated and should not be used') if deprecate?
  $stdout.puts("Adding patch: #{self.class}\n#{description}")
  perform
end