lib/db_vcs/utils.rb
# Generate db name, based on branch name and environment.
# @param environment [String] application's environment name. E.g. "development", "test"
# @param branch [String]
# @return [String]
Generate db name, based on branch name and environment.
Generate db name based on branch name and environment .
def db_name(environment, branch)
        [DbVcs.config.db_basename, environment, branch].map do |str|
          normalize_db_part(str)
        end.join("_")
      end
def db_name ( environment , branch ) [ DbVcs . config . db_basename , environment , branch ] . map do | str | normalize_db_part ( str ) end . join ( "_" ) end
Generate db name, based on branch name and environment.
Generate db name based on branch name and environment .
None
String
environment
application's environment name. E.g. "development", "test"
application ' s environment name . E . g . " development " " test "
branch
<not_specific>
<not_specific>
None