Sha256: 811042df6f52746bdb3dbfb465ea75b6b4f5eea1ed0265087f32b9e41db5e2b4
Contents?: true
Size: 1 KB
Versions: 9
Compression:
Stored size: 1 KB
Contents
require 'virtus' require 'thor' require 'logger' # Rgentpl module Rgentpl # Loading core extensions Dir["#{File.dirname(__FILE__)}/../lib/rgentpl/core_ext/*.rb"] .each do |f| require f end # Loading exception Dir["#{File.dirname(__FILE__)}/../lib/rgentpl/exception/*.rb"] .each do |f| require f end require_relative 'rgentpl/version' require_relative 'rgentpl/command/generate' require_relative 'rgentpl/command/base' require_relative 'rgentpl/boot/initializer' require_relative 'rgentpl/boot/application' require_relative 'rgentpl/core/configuration' class << self # Environment # # @return [String] the current environment def env unless defined?(TEMPLATE_ENV) load File.expand_path('../../config/environment.rb', __FILE__) end TEMPLATE_ENV end # Logger # # @return [Logger] the logger def logger @_logger ||= Logger.new( "#{File.dirname(__FILE__)}/../log/#{config.log_file}" ) end end end
Version data entries
9 entries across 9 versions & 1 rubygems