Module: Rudeki

Defined in:
lib/rudeki.rb,
lib/rudeki/config.rb,
lib/rudeki/version.rb

Overview

Show quarantine block

Defined Under Namespace

Modules: Config

Constant Summary collapse

VERSION =
"0.0.6"

Class Method Summary collapse

Class Method Details

.quarantineObject



17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/rudeki.rb', line 17

def self.quarantine
  yield
  rudeki_info "╔═════════ RUDEKI::quarantine isn't continues ═════════"
  rudeki_info " method quarantine is used in:"
  rudeki_info "   #{caller[0]}"
  rudeki_info "╚══════════════════════════════════════════════════════"
rescue => e
  rudeki_info "╔═════════ RUDEKI::quarantine is continues ════════════"
  rudeki_info " message:"
  rudeki_info "    #{e.message}"
  rudeki_info " backtrace:"
  rudeki_info "    #{e.backtrace.join("\n    ")}"
  rudeki_info "╚══════════════════════════════════════════════════════"
end