# File lib/inline.rb, line 85 def self.rootdir env = ENV['INLINEDIR'] || ENV['HOME'] # in case both INLINEDIR and HOME aren't defined, and under Windows # default to HOMEDRIVE + HOMEPATH values env = ENV['HOMEDRIVE'] + ENV['HOMEPATH'] if env.nil? and WINDOZE if env.nil? then abort "Define INLINEDIR or HOME in your environment and try again" end unless defined? @@rootdir and env == @@rootdir and test ?d, @@rootdir then rootdir = env Dir.mkdir rootdir, 0700 unless test ?d, rootdir Dir.assert_secure rootdir @@rootdir = rootdir end @@rootdir end