Sha256: 9a6e55d7757cfc2b849f65a519d4ec4c64c6b7220e1e9b12e26fbe1150674ea5

Contents?: true

Size: 554 Bytes

Versions: 19

Compression:

Stored size: 554 Bytes

Contents

# Rgentpl
module Rgentpl
  # Initializer
  #
  # Load environment configuration file
  module Initializer
    # Build actions
    #
    # Actions
    # - Load environment configuration file
    # - Load initializers
    #
    # @return [void]
    def self.build
      require_relative "../../../config/environments/#{Rgentpl.env}.rb"

      Dir[File.expand_path(File.join(File.dirname(__FILE__),
                                     '../../../config/initializers/*.rb'))]
        .each do |file|
        require_relative file
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rgentpl-1.2.6 lib/rgentpl/boot/initializer.rb
rgentpl-1.2.5 lib/rgentpl/boot/initializer.rb
rgentpl-1.2.4.3 lib/rgentpl/boot/initializer.rb
rgentpl-1.2.4.2 lib/rgentpl/boot/initializer.rb
rgentpl-1.2.4.1 lib/rgentpl/boot/initializer.rb
rgentpl-1.2.4 lib/rgentpl/boot/initializer.rb
rgentpl-1.2.3 lib/rgentpl/boot/initializer.rb
rgentpl-1.2.2 lib/rgentpl/boot/initializer.rb
rgentpl-1.2.1 lib/rgentpl/boot/initializer.rb
rgentpl-1.2.0 lib/rgentpl/boot/initializer.rb
rgentpl-1.0.9 lib/rgentpl/boot/initializer.rb
rgentpl-1.0.8 lib/rgentpl/boot/initializer.rb
rgentpl-1.0.7 lib/rgentpl/boot/initializer.rb
rgentpl-1.0.6 lib/rgentpl/boot/initializer.rb
rgentpl-1.0.5 lib/rgentpl/boot/initializer.rb
rgentpl-1.0.4 lib/rgentpl/boot/initializer.rb
rgentpl-1.0.3 lib/rgentpl/boot/initializer.rb
rgentpl-1.0.2 lib/rgentpl/boot/initializer.rb
rgentpl-1.0.1 lib/rgentpl/boot/initializer.rb