Sha256: aee9318ef7c318e739dd7113936ac78abadf0bc695ff536d2522a3092f6e6e6e

Contents?: true

Size: 262 Bytes

Versions: 19

Compression:

Stored size: 262 Bytes

Contents

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

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
procon_bypass_man-0.3.12 lib/procon_bypass_man/support/never_exit_accidentally.rb
procon_bypass_man-0.3.11 lib/procon_bypass_man/support/never_exit_accidentally.rb
procon_bypass_man-0.3.10 lib/procon_bypass_man/support/never_exit_accidentally.rb
procon_bypass_man-0.3.9 lib/procon_bypass_man/support/never_exit_accidentally.rb
procon_bypass_man-0.3.8.1 lib/procon_bypass_man/support/never_exit_accidentally.rb
procon_bypass_man-0.3.8 lib/procon_bypass_man/support/never_exit_accidentally.rb
procon_bypass_man-0.3.7 lib/procon_bypass_man/support/never_exit_accidentally.rb
procon_bypass_man-0.3.6 lib/procon_bypass_man/support/never_exit_accidentally.rb
procon_bypass_man-0.3.5 lib/procon_bypass_man/support/never_exit_accidentally.rb
procon_bypass_man-0.3.4 lib/procon_bypass_man/support/never_exit_accidentally.rb
procon_bypass_man-0.3.3.1 lib/procon_bypass_man/support/never_exit_accidentally.rb
procon_bypass_man-0.3.3 lib/procon_bypass_man/support/never_exit_accidentally.rb
procon_bypass_man-0.3.2 lib/procon_bypass_man/support/never_exit_accidentally.rb
procon_bypass_man-0.3.1 lib/procon_bypass_man/support/never_exit_accidentally.rb
procon_bypass_man-0.3.0 lib/procon_bypass_man/support/never_exit_accidentally.rb
procon_bypass_man-0.2.3 lib/procon_bypass_man/support/never_exit_accidentally.rb
procon_bypass_man-0.2.2 lib/procon_bypass_man/support/never_exit_accidentally.rb
procon_bypass_man-0.2.1 lib/procon_bypass_man/support/never_exit_accidentally.rb
procon_bypass_man-0.2.0 lib/procon_bypass_man/support/never_exit_accidentally.rb