Sha256: 35f51d0b21ea7905f1b3cbb9b1f3a00b6299c8902ae679b591300fbaa2c2cdfc
Contents?: true
Size: 567 Bytes
Versions: 2
Compression:
Stored size: 567 Bytes
Contents
module Roro class CLI < Thor no_commands do def configure_for_pg insert_db_gem('pg') copy_file 'rails/config/database.pg.yml', 'config/database.yml', force: true config = @config.app.clone %w(development production test staging ci).each do |environment| config['rails_env'] = environment source = 'rails/dotenv/database.pg.env.tt' target = "roro/containers/database/#{environment}.env" template( source, target, config ) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
roro-0.3.17 | lib/roro/cli/rollon/rails/database/with_postgresql.rb |
roro-0.3.16 | lib/roro/cli/rollon/rails/database/with_postgresql.rb |