Sha256: 6b81e04c20ec536e86d992a4c15ba3de85b2c4b22f0759cac733b50c5ef3dab8
Contents?: true
Size: 888 Bytes
Versions: 5
Compression:
Stored size: 888 Bytes
Contents
# Don't change this file. Configuration is done in config/environment.rb unless defined?(SHATTERED_ROOT) root_path = File.join(File.dirname(__FILE__), '..') unless RUBY_PLATFORM =~ /mswin32/ require 'pathname' root_path = Pathname.new(root_path).cleanpath(true).to_s end SHATTERED_ROOT = root_path end def load_shattered_edge(path) shatter_path = "#{path}/shatter/lib" $: << shatter_path if File.directory? shatter_path require 'rubygems' require 'shatter' end def load_plugins(path) Dir.foreach(path) do |plugin| next if plugin == ".." || plugin == "." plugin_file = "#{path}/#{plugin}/init" require plugin_file if File.exists? "#{plugin_file}.rb" end end # Load the plugins, and Shattered Edge, if present load_shattered_edge("#{SHATTERED_ROOT}/vendor/shattered") # Load the plugins load_plugins("#{SHATTERED_ROOT}/vendor/plugins")
Version data entries
5 entries across 5 versions & 2 rubygems