class Bucky::Core::TestCore::ExitHandler

Public Class Methods

new() click to toggle source
# File lib/bucky/core/test_core/exit_handler.rb, line 11
def initialize
  @exit_code = 0
end

Public Instance Methods

bucky_exit() click to toggle source
# File lib/bucky/core/test_core/exit_handler.rb, line 23
def bucky_exit
  exit @exit_code
end
raise() click to toggle source
# File lib/bucky/core/test_core/exit_handler.rb, line 19
def raise
  @exit_code = 1
end
reset() click to toggle source
# File lib/bucky/core/test_core/exit_handler.rb, line 15
def reset
  @exit_code = 0
end