Sha256: e148923f69bb00f744cad23441169b4dd0979577387ff811a84985d6da09d649
Contents?: true
Size: 941 Bytes
Versions: 7
Compression:
Stored size: 941 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 blueprint architect).each do |lib| require "architecture-js/#{lib}" end
Version data entries
7 entries across 7 versions & 1 rubygems