Top Level Namespace
Defined Under Namespace
Modules: AbortedStream, AnnotatedArray, Annotation, CMD, CaseInsensitiveHash, Colorize, ConcurrentStream, IndiferentHash, Log, Misc, NamedArray, Open, Path, Persist, Resource, SOPT, Scout, ScoutRake, TmpFile
Classes: Aborted, ClosedStream, Color, ConcurrentStreamProcessFailed, DontClose, DontPersist, FieldNotFoundError, KeepBar, KeepLocked, LockInterrupted, Lockfile, MissingParameterException, OpenURLError, ParameterException, ProcessFailed, ResourceNotFound, ScoutDeprecated, ScoutException, StopInsist, TryAgain
Instance Method Summary
collapse
-
#ccc(obj = nil, file = $stdout) ⇒ Object
-
#ddd(obj, file = $stdout) ⇒ Object
-
#ddf(obj = nil, file = $stdout) ⇒ Object
-
#eee(obj = nil, file = $stdout) ⇒ Object
-
#eef(obj = nil, file = $stdout) ⇒ Object
-
#fff(object) ⇒ Object
-
#iif(obj = nil, file = $stdout) ⇒ Object
-
#iii(obj = nil, file = $stdout) ⇒ Object
-
#llf(obj = nil, file = $stdout) ⇒ Object
-
#lll(obj, file = $stdout) ⇒ Object
-
#Lockfile(path, *a, &b) ⇒ Object
-
#mmf(obj = nil, file = $stdout) ⇒ Object
-
#mmm(obj, file = $stdout) ⇒ Object
-
#ppp(message) ⇒ Object
-
#rgb(*args) ⇒ Object
“Global” method for creating Color objects, eg: new_color = rgb(params) style=“border: 1px solid <%= rgb(10,50,80).lighten %>”.
-
#sss(level, &block) ⇒ Object
-
#wwwf(obj = nil, file = $stdout) ⇒ Object
-
#wwww(obj = nil, file = $stdout) ⇒ Object
Instance Method Details
#ccc(obj = nil, file = $stdout) ⇒ Object
431
432
433
434
435
436
437
438
439
440
441
442
443
|
# File 'lib/scout/log.rb', line 431
def ccc(obj=nil, file = $stdout)
if block_given?
old_scout_debug_log = $scout_debug_log
$scout_debug_log = 'true'
begin
yield
ensure
$scout_debug_log = old_scout_debug_log
end
else
Log.log_obj_inspect(obj, :info, file) if $scout_debug_log
end
end
|
#ddd(obj, file = $stdout) ⇒ Object
374
375
376
|
# File 'lib/scout/log.rb', line 374
def ddd(obj, file = $stdout)
Log.log_obj_inspect(obj, :debug, file)
end
|
#ddf(obj = nil, file = $stdout) ⇒ Object
398
399
400
|
# File 'lib/scout/log.rb', line 398
def ddf(obj=nil, file = $stdout)
Log.log_obj_fingerprint(obj, :debug, file)
end
|
#eee(obj = nil, file = $stdout) ⇒ Object
394
395
396
|
# File 'lib/scout/log.rb', line 394
def eee(obj=nil, file = $stdout)
Log.log_obj_inspect(obj, :error, file)
end
|
#eef(obj = nil, file = $stdout) ⇒ Object
418
419
420
|
# File 'lib/scout/log.rb', line 418
def eef(obj=nil, file = $stdout)
Log.log_obj_fingerprint(obj, :error, file)
end
|
#iif(obj = nil, file = $stdout) ⇒ Object
410
411
412
|
# File 'lib/scout/log.rb', line 410
def iif(obj=nil, file = $stdout)
Log.log_obj_fingerprint(obj, :info, file)
end
|
#iii(obj = nil, file = $stdout) ⇒ Object
386
387
388
|
# File 'lib/scout/log.rb', line 386
def iii(obj=nil, file = $stdout)
Log.log_obj_inspect(obj, :info, file)
end
|
#llf(obj = nil, file = $stdout) ⇒ Object
402
403
404
|
# File 'lib/scout/log.rb', line 402
def llf(obj=nil, file = $stdout)
Log.log_obj_fingerprint(obj, :low, file)
end
|
#lll(obj, file = $stdout) ⇒ Object
378
379
380
|
# File 'lib/scout/log.rb', line 378
def lll(obj, file = $stdout)
Log.log_obj_inspect(obj, :low, file)
end
|
#Lockfile(path, *a, &b) ⇒ Object
582
583
584
|
# File 'lib/scout/open/lock/lockfile.rb', line 582
def Lockfile(path, *a, &b)
Lockfile.new(path, *a, &b)
end
|
#mmf(obj = nil, file = $stdout) ⇒ Object
406
407
408
|
# File 'lib/scout/log.rb', line 406
def mmf(obj=nil, file = $stdout)
Log.log_obj_fingerprint(obj, :medium, file)
end
|
#mmm(obj, file = $stdout) ⇒ Object
382
383
384
|
# File 'lib/scout/log.rb', line 382
def mmm(obj, file = $stdout)
Log.log_obj_inspect(obj, :medium, file)
end
|
#ppp(message) ⇒ Object
354
355
356
357
358
359
360
361
362
363
364
|
# File 'lib/scout/log.rb', line 354
def ppp(message)
stack = caller
puts "#{Log.color :cyan, "PRINT:"} " << stack.first
puts ""
if message.length > 200 or message.include? "\n"
puts Log.color(:cyan, "=>|") << "\n" << message.to_s
else
puts Log.color(:cyan, "=> ") << message.to_s
end
puts ""
end
|
#rgb(*args) ⇒ Object
“Global” method for creating Color objects, eg:
new_color = rgb(params[:new_color])
style="border: 1px solid <%= rgb(10,50,80).lighten %>"
265
266
267
|
# File 'lib/scout/log/color_class.rb', line 265
def rgb(*args)
Color.parse(*args)
end
|
#sss(level, &block) ⇒ Object
422
423
424
425
426
427
428
|
# File 'lib/scout/log.rb', line 422
def sss(level, &block)
if block_given?
Log.with_severity level, &block
else
Log.severity = level
end
end
|
#wwwf(obj = nil, file = $stdout) ⇒ Object
414
415
416
|
# File 'lib/scout/log.rb', line 414
def wwwf(obj=nil, file = $stdout)
Log.log_obj_fingerprint(obj, :warn, file)
end
|
#wwww(obj = nil, file = $stdout) ⇒ Object
390
391
392
|
# File 'lib/scout/log.rb', line 390
def wwww(obj=nil, file = $stdout)
Log.log_obj_inspect(obj, :warn, file)
end
|