lib/db_vcs/manager.rb
# Creates databases for target branch from source branch for all setup environments for all setup databases
# @param :target [String] target branch name
# @param :source [String] a branch name to copy the db from
# @return [void]
Creates databases for target branch from source branch for all setup environments for all setup databases
Creates databases for target branch from source branch for all setup environments for all setup databases
def copy_for_all_envs(target:, source: DbVcs.config.main_branch)
        DbVcs.config.dbs_in_use.each do |adapter_name|
          inst = new(adapter_name)
          DbVcs.config.environments.each do |env|
            inst.copy(target: DbVcs::Utils.db_name(env, target), source: DbVcs::Utils.db_name(env, source))
          end
        end
      end
def copy_for_all_envs ( target : , source : DbVcs . config . main_branch ) DbVcs . config . dbs_in_use . each do | adapter_name | inst = new ( adapter_name ) DbVcs . config . environments . each do | env | inst . copy ( target : DbVcs :: Utils . db_name ( env , target ) , source : DbVcs :: Utils . db_name ( env , source ) ) end end end
Creates databases for target branch from source branch for all setup environments for all setup databases
Creates databases for target branch from source branch for all setup environments for all setup databases
None
void
target
<not_specific>
source
<not_specific>
config
<not_specific>
main_branch
<not_specific>
:target
<not_specific>
target branch name
target branch name
:source
<not_specific>
a branch name to copy the db from
a branch name to copy the db from