Module: RakeExceptionHook

Defined in:
lib/rake_exception_hook.rb

Constant Summary collapse

VERSION =
"3.14"
@@start_hook =
nil
@@finish_hook =
nil
@@except_hook =
nil

Class Method Summary collapse

Class Method Details

.except(&block) ⇒ Object



15
16
17
# File 'lib/rake_exception_hook.rb', line 15

def self.except &block
    @@except_block = block
end

.except_hookObject



27
28
29
# File 'lib/rake_exception_hook.rb', line 27

def self.except_hook
    @@except_block
end

.finish(&block) ⇒ Object



11
12
13
# File 'lib/rake_exception_hook.rb', line 11

def self.finish &block
    @@finish_block = block 
end

.finish_hookObject



23
24
25
# File 'lib/rake_exception_hook.rb', line 23

def self.finish_hook
    @@finish_block
end

.start(&block) ⇒ Object



7
8
9
# File 'lib/rake_exception_hook.rb', line 7

def self.start &block
    @@start_block = block
end

.start_hookObject



19
20
21
# File 'lib/rake_exception_hook.rb', line 19

def self.start_hook
    @@start_block
end