Sha256: ae101c7697049f89548dd2116b492ee8e09ad4357b6be87c27784e954041eafc
Contents?: true
Size: 949 Bytes
Versions: 9
Compression:
Stored size: 949 Bytes
Contents
module ArchitectureJS end require "architecture-js/helpers" module ArchitectureJS def base_directory File.expand_path(File.join(File.dirname(__FILE__), '..')) end def lib_directory File.expand_path(File.join(File.dirname(__FILE__))) end def root_directory File.expand_path(File.join(File.dirname(Dir.getwd))) end def register_blueprint(name, constructor) ArchitectureJS::BLUEPRINTS[name] = constructor end def get_config_file(path) (Dir.entries(path).select { |f| f.match /\.blueprint$/ })[0] end module_function :base_directory, :lib_directory, :register_blueprint, :get_config_file end module ArchitectureJS VERSION = File.read("#{base_directory}/VERSION") BLUEPRINTS = Hash.new end require "sprockets/lib/sprockets" %w(dependencies generator notification watcher blueprint architect).each do |lib| require "architecture-js/#{lib}" end
Version data entries
9 entries across 9 versions & 1 rubygems