Top Level Namespace

Defined Under Namespace

Modules: Boogaloo

Constant Summary collapse

APP_NAME =
'Boogaloo'
PKG_VERSION =
"0.1"

Instance Method Summary collapse

Instance Method Details

#debug(msg) ⇒ Object



25
26
27
28
29
# File 'lib/boogaloo/util.rb', line 25

def debug(msg)

    puts "[#{APP_NAME}] DEBUG: #{msg}"

end

#error(msg) ⇒ Object

Output an error message to stderr and perform an immediate ungraceful server shutdown.



4
5
6
7
8
9
# File 'lib/boogaloo/util.rb', line 4

def error(msg)

    $stderr.puts "[#{APP_NAME}] ERROR: #{msg}"
    exit 1
    
end

#notice(msg) ⇒ Object

Output an information message.



12
13
14
15
16
# File 'lib/boogaloo/util.rb', line 12

def notice(msg)

    puts "[#{APP_NAME}] #{msg}"

end

#warning(msg) ⇒ Object

Output a warning message to stderr.



19
20
21
22
23
# File 'lib/boogaloo/util.rb', line 19

def warning(msg)

    $stderr.puts "[#{APP_NAME}] WARNING: #{msg}"

end