eval/eval.rb
# Internal: Copies evaluated code to someplace safe, for audit purposes.
#
# Before code is evaluated, Sandbox.evaluate() calls this to copy the code
# to somewhere safe (@path/evaluated/*) for auditing purposes in case we ever
# need to see what caused a bug. Not that Rublets has bugs. ;-)
#
# Returns nothing.
Copies evaluated code to someplace safe, for audit purposes.
Before code is evaluated, Sandbox.evaluate() calls this to copy the code
to somewhere safe (@path/evaluated) for auditing purposes in case we ever
need to see what caused a bug. Not that Rublets has bugs.

Returns nothing.
Copies evaluated code to someplace safe for audit purposes . Before code is evaluated Sandbox . evaluate () calls this to copy the code to somewhere safe ( @path / evaluated ) for auditing purposes in case we ever need to see what caused a bug . Not that Rublets has bugs . Returns nothing .
def copy_audit_script
    FileUtils.cp(
      "#{@home}/#{@script_filename}",
      "#{@path}/evaluated/#{@time.year}-#{@time.month}-#{@time.day}_"+
      "#{@time.hour}-#{@time.min}-#{@time.sec}-#{@owner}-#{@time.to_f}_"+
      "#{@server}_#{@channel}.#{@extension}")
  end
def copy_audit_script FileUtils . cp ( "#{@home}/#{@script_filename}" , "#{@path}/evaluated/#{@time.year}-#{@time.month}-#{@time.day}_" + "#{@time.hour}-#{@time.min}-#{@time.sec}-#{@owner}-#{@time.to_f}_" + "#{@server}_#{@channel}.#{@extension}" ) end
Internal: Copies evaluated code to someplace safe, for audit purposes.
Internal : Copies evaluated code to someplace safe for audit purposes .