Sha256: f45a2b51b04951a9a38cd630c1e6dccb640e423531a00f175b74f8a3e1d9f492
Contents?: true
Size: 665 Bytes
Versions: 2
Compression:
Stored size: 665 Bytes
Contents
# Ensure that proper versions of gems in config/geminstaller.yml are activated. require 'rubygems' gem 'rails', '~> 2.3.2' gem 'geminstaller', '~> 0.5.1' require 'geminstaller' rails_env = ENV['RAILS_ENV'] || 'development' perform_install = %w(development test).include?(rails_env) # Activate gems common_gemfile = File.join(RAILS_ROOT, 'config', 'geminstaller.yml') env_gemfile = File.join(RAILS_ROOT, "config", rails_env, "geminstaller.yml") [common_gemfile, env_gemfile].each do |file| if File.exists?(file) GemInstaller.install("--exceptions --config=#{file}") if perform_install GemInstaller.autogem("--exceptions --config=#{file}") end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
jtrupiano-environmentalist-0.2.4 | lib/conf/preinitializer.rb |
environmentalist-0.2.4 | lib/conf/preinitializer.rb |