Module: RakeCommander::Patcher::Application::RunMethod
- Includes:
- Base
- Defined in:
- lib/rake-commander/patcher/application/run_method.rb
Defined Under Namespace
Modules: Patch
Class Method Summary collapse
Class Method Details
.patch_prepend(_invoked_by) ⇒ Object
12 13 14 15 |
# File 'lib/rake-commander/patcher/application/run_method.rb', line 12 def patch_prepend(_invoked_by) return unless target_defined? Rake::Application.prepend Patch end |
.target ⇒ Object
8 9 10 |
# File 'lib/rake-commander/patcher/application/run_method.rb', line 8 def target Rake::Application end |
.target_defined? ⇒ Boolean
17 18 19 20 21 |
# File 'lib/rake-commander/patcher/application/run_method.rb', line 17 def target_defined? return true if defined?(target) puts "Warning (#{self}): undefined target #{target}" false end |