Sha256: 937db48b1ac795facc82876f1bb76a19ee23a25103f31516bad93af5e42cba33
Contents?: true
Size: 960 Bytes
Versions: 6
Compression:
Stored size: 960 Bytes
Contents
module Pione module System class Init def init # turn on "abort on exception" mode Thread.abort_on_exception = true # load configration file for global system Global::Config.load(Global.config_path) # make temporary directories unless Global.temporary_directory.exist? Global.temporary_directory.mkdir(0777) end # setup default temporary path generator Temppath.update_basedir(Global.my_temporary_directory + "others_%s" % Util::UUID.generate) # make file cache directory unless Global.file_cache_directory.exist? Global.file_cache_directory.mkdir(0777) end # make my file cache directory unless Global.file_cache_directory.exist? Global.file_cache_directory.mkdir(0777) end # create system logger for starting on free context Global.system_logger end end end end
Version data entries
6 entries across 6 versions & 1 rubygems