Module: Warbler::RakeHelper

Included in:
Application, Config, Jar, Task, Traits::War
Defined in:
lib/warbler/rake_helper.rb

Overview

This module exists for compatibility with Rake 0.9.

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/warbler/rake_helper.rb', line 21

def self.extended(base)
  base.extend Rake::DSL if defined?(Rake::DSL)
  if defined?(Rake::FileUtilsExt)
    base.extend FileUtils
    base.extend Rake::FileUtilsExt
  end
end

.included(base) ⇒ Object



11
12
13
14
15
16
17
18
19
# File 'lib/warbler/rake_helper.rb', line 11

def self.included(base)
  base.class_eval do
    include Rake::DSL if defined?(Rake::DSL)
    if defined?(Rake::FileUtilsExt)
      include FileUtils
      include Rake::FileUtilsExt
    end
  end
end