Module: Cybele::Helpers::Dotenv
- Included in:
- AppBuilder
- Defined in:
- lib/cybele/helpers/dotenv.rb
Instance Method Summary collapse
Instance Method Details
#configure_dotenv ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/cybele/helpers/dotenv.rb', line 6 def configure_dotenv # Add dotenv gem inject_into_file 'Gemfile', template_content('dotenv/dotenv_Gemfile.erb'), before: "# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'" run_bundle # Create dotenv files files_to_template( 'dotenv/.env.sample.erb' => '.env.sample', 'dotenv/.env.local.erb' => '.env.local', 'dotenv/.env.staging.erb' => '.env.staging', 'dotenv/.env.production.erb' => '.env.production' ) end |