Module: RakeCommander::Patcher::Application::TopLevelResume

Includes:
Base
Defined in:
lib/rake-commander/patcher/application/top_level_resume.rb

Defined Under Namespace

Modules: ClassMethods, Patch

Class Method Summary collapse

Class Method Details

.patch_prepend(_invoked_by) ⇒ Object



12
13
14
15
# File 'lib/rake-commander/patcher/application/top_level_resume.rb', line 12

def patch_prepend(_invoked_by)
  return unless target_defined?
  Rake::Application.prepend Patch
end

.targetObject



8
9
10
# File 'lib/rake-commander/patcher/application/top_level_resume.rb', line 8

def target
  Rake::Application
end

.target_defined?Boolean

Returns:

  • (Boolean)


17
18
19
20
21
# File 'lib/rake-commander/patcher/application/top_level_resume.rb', line 17

def target_defined?
  return true if defined?(target)
  puts "Warning (#{self}): undefined target #{target}"
  false
end