Module: ProconBypassMan::NeverExitAccidentally

Defined in:
lib/procon_bypass_man/support/never_exit_accidentally.rb

Class Method Summary collapse

Class Method Details

.exit_if_allow_at_configObject



3
4
5
6
7
8
9
10
# File 'lib/procon_bypass_man/support/never_exit_accidentally.rb', line 3

def self.exit_if_allow_at_config
  if ProconBypassMan.never_exit_accidentally
    ProconBypassMan.eternal_sleep
  else
    yield if block_given?
    exit 1
  end
end