Sha256: 420bc8db752e15a9345ba47e88ee98d8e6ee7f7aead84cffe50b5774b421d7f6
Contents?: true
Size: 627 Bytes
Versions: 1
Compression:
Stored size: 627 Bytes
Contents
SHATTERED_ROOT = File.join(File.dirname(__FILE__), '..') 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shattered-0.3.3 | lib/templates/configs/boot.rb |