Sha256: 0451f5fb4f7969412177eeb7f4412de0475f395a9633154184d4956654f616af
Contents?: true
Size: 850 Bytes
Versions: 2
Compression:
Stored size: 850 Bytes
Contents
require 'java' require 'fileutils' require "core/logger" require "core/reentry_helpers" require "core/controller" require "core/gui" require "core/has_spi" require "core/interface" require "core/model" require "core/observable" require "core/observable_struct" require "core/persistent_cache" require "core/plugin" require "core/plugin/storage" require "core/task" require "core/task_queue" require "core/resource" module Redcar def self.tmp_dir path = File.join(Redcar.user_dir, "tmp") unless File.exists?(path) FileUtils.mkdir(path) end path end class Core include HasLogger def self.loaded Core::Logger.init unless File.exist?(Redcar.user_dir) FileUtils.mkdir(Redcar.user_dir) end PersistentCache.storage_dir = File.join(Redcar.user_dir, "cache") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
redcar-0.3.7.1 | plugins/core/lib/core.rb |
redcar-0.3.7 | plugins/core/lib/core.rb |