Sha256: 2ad0c6f0d29f1267210187b9baae6bceeec9d1512569a4d21c9b04b08c93a6eb
Contents?: true
Size: 803 Bytes
Versions: 3
Compression:
Stored size: 803 Bytes
Contents
SHATTERED_ROOT = File.join(File.dirname(__FILE__), '..') def load_shattered_edge(path) ["shattered_ogre", "shattered_model", "shattered_view", "shatter", "shattered_controller", "shattered_support"].each do |edge| lib_path = "#{path}/#{edge}/lib" next if not File.directory? lib_path $: << lib_path end 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") begin require 'shatter' rescue LoadError require 'rubygems' require 'shatter' end load_plugins("#{SHATTERED_ROOT}/vendor/plugins")
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
shattered-0.3.1 | lib/templates/configs/boot.rb |
shattered-0.3.2 | lib/templates/configs/boot.rb |
shattered-0.3 | lib/templates/configs/boot.rb |