Class: Bake::ExitHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/common/exit_helper.rb

Constant Summary collapse

@@exit_code =
0

Class Method Summary collapse

Class Method Details

.exit(val) ⇒ Object



18
19
20
21
# File 'lib/common/exit_helper.rb', line 18

def self.exit(val)
  @@exit_code = val
  Kernel::exit
end

.exit_codeObject



10
11
12
# File 'lib/common/exit_helper.rb', line 10

def self.exit_code()
  @@exit_code
end

.reset_exit_codeObject



14
15
16
# File 'lib/common/exit_helper.rb', line 14

def self.reset_exit_code()
  @@exit_code = 0
end

.set_exit_code(val) ⇒ Object



6
7
8
# File 'lib/common/exit_helper.rb', line 6

def self.set_exit_code(val)
  @@exit_code = val
end