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

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’)



323
324
325
326
327
# File 'lib/libcfruby/cfrubyscript.rb', line 323

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_noopObject

sets up an observer that prevents any actual actionf rom being taken by the cfruby library



317
318
319
# File 'lib/libcfruby/cfrubyscript.rb', line 317

def set_cfruby_noop
  Cfruby.controller.register(Cfruby::Script::NOOPObserver.new())
end