Top Level Namespace
Defined Under Namespace
Modules: CfYAML, Cfp_Cksum, Cfruby, CfrubyRuntime, FlowMonitor Classes: Array, Cfp_Translate, String
Constant Summary collapse
- FileOps =
push all of the major callable modules into the main namespace
Cfruby::FileOps
- Checksum =
Cfruby::Checksum::Checksum
- FileEdit =
Cfruby::FileEdit
- FileFind =
Cfruby::FileFind
- Exec =
Cfruby::Exec
- OS =
Cfruby::OS
Instance Method Summary collapse
-
#set_cfruby_log(filename, level = 1) ⇒ Object
sets the filename and level for cfrubyscript logging - defaults to stdout and ‘info’.
-
#set_cfruby_noop ⇒ Object
sets up an observer that prevents any actual actionf rom being taken by the cfruby library.
Instance Method Details
#set_cfruby_log(filename, level = 1) ⇒ Object
sets the filename and level for cfrubyscript logging - defaults to stdout and ‘info’. Level may be given as a number between 0 and 4 or a named level (‘debug’, ‘verbose’, ‘info’, ‘warn’)
344 345 346 347 348 |
# File 'lib/libcfruby/cfrubyscript.rb', line 344 def set_cfruby_log(filename, level=1) Cfruby.controller.unregister($cflogger) $cflogger = Cfruby::Script::Observer.new(filename, level) Cfruby.controller.register($cflogger) end |
#set_cfruby_noop ⇒ Object
sets up an observer that prevents any actual actionf rom being taken by the cfruby library
338 339 340 |
# File 'lib/libcfruby/cfrubyscript.rb', line 338 def set_cfruby_noop Cfruby.controller.register(Cfruby::Script::NOOPObserver.new()) end |