Sha256: cfef512a1b6eab7d245519717322ea8b519804fee69b85f35fbb1e8fb5e36b66
Contents?: true
Size: 870 Bytes
Versions: 2
Compression:
Stored size: 870 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 end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pione-0.3.2 | lib/pione/system/init.rb |
pione-0.3.1 | lib/pione/system/init.rb |