Sha256: 3584dc7876ac5cb29487dfb1ce544c860982dd7135bb57e52306a5f1c963b614

Contents?: true

Size: 890 Bytes

Versions: 30

Compression:

Stored size: 890 Bytes

Contents

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"

begin
  require 'java'
  require "core/task"
  require "core/task_queue"
  require "core/resource"
rescue LoadError => e
end

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

30 entries across 30 versions & 1 rubygems

Version Path
redcar-0.11.0dev plugins/core/lib/core.rb
redcar-0.10 plugins/core/lib/core.rb
redcar-0.9.2 plugins/core/lib/core.rb
redcar-0.9.1 plugins/core/lib/core.rb
redcar-0.9.0 plugins/core/lib/core.rb
redcar-0.8.1 plugins/core/lib/core.rb
redcar-0.8 plugins/core/lib/core.rb
redcar-0.7 plugins/core/lib/core.rb
redcar-0.6.1 plugins/core/lib/core.rb
redcar-0.6 plugins/core/lib/core.rb
redcar-0.6.1dev plugins/core/lib/core.rb
redcar-0.5.1 plugins/core/lib/core.rb
redcar-0.5 plugins/core/lib/core.rb
redcar-0.5.6dev plugins/core/lib/core.rb
redcar-0.5.5dev plugins/core/lib/core.rb
redcar-0.5.4dev plugins/core/lib/core.rb
redcar-0.5.3dev plugins/core/lib/core.rb
redcar-0.5.2dev plugins/core/lib/core.rb
redcar-0.5.1dev plugins/core/lib/core.rb
redcar-0.4.1 plugins/core/lib/core.rb