# File lib/inline.rb, line 65 def self.rootdir env = ENV['INLINEDIR'] || ENV['HOME'] if env.nil? then $stderr.puts "Define INLINEDIR or HOME in your environment and try again" exit 1 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