class Recipes::Env
Public Instance Methods
create()
click to toggle source
# File lib/potassium/recipes/env.rb, line 2 def create gather_gems(:development, :test) do gather_gem('dotenv-rails') end template '../assets/.env.development.erb', '.env.development' append_to_file '.gitignore', ".env.local\n" append_to_file '.gitignore', ".env\n" env_config = <<~RUBY config.before_configuration do Dotenv.load(Dotenv::Railtie.root.join('.env.development')) end RUBY application env_config, env: 'test' end