Sha256: 9713521eb10511d5cc015f3163916e6e77323aab095b098bc8b339af061e0748

Contents?: true

Size: 524 Bytes

Versions: 38

Compression:

Stored size: 524 Bytes

Contents

desc 'create-databases', 'Create all databases', hide: true
def create_databases
  invoke_geordi 'create_database_yml'
  invoke_geordi 'bundle_install'

  Interaction.announce 'Creating databases'

  if File.exist?('config/database.yml')
    command = []
    command << Util.binstub_or_fallback('rake')
    command << 'db:create:all'
    command << 'parallel:create' if Util.file_containing?('Gemfile', /parallel_tests/)

    Util.run!(command)
  else
    puts 'config/database.yml does not exist. Nothing to do.'
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
geordi-11.2.1 lib/geordi/commands/create_databases.rb
geordi-11.2.0 lib/geordi/commands/create_databases.rb
geordi-11.1.0 lib/geordi/commands/create_databases.rb
geordi-11.0.0 lib/geordi/commands/create_databases.rb
geordi-10.1.0 lib/geordi/commands/create_databases.rb
geordi-10.0.1 lib/geordi/commands/create_databases.rb
geordi-10.0.0 lib/geordi/commands/create_databases.rb
geordi-9.6.1 lib/geordi/commands/create_databases.rb
geordi-9.6.0 lib/geordi/commands/create_databases.rb
geordi-9.5.1 lib/geordi/commands/create_databases.rb
geordi-9.5.0 lib/geordi/commands/create_databases.rb
geordi-9.4.1 lib/geordi/commands/create_databases.rb
geordi-9.4.0 lib/geordi/commands/create_databases.rb
geordi-9.3.1 lib/geordi/commands/create_databases.rb
geordi-9.3.0 lib/geordi/commands/create_databases.rb
geordi-9.2.0 lib/geordi/commands/create_databases.rb
geordi-9.1.0 lib/geordi/commands/create_databases.rb
geordi-9.0.0 lib/geordi/commands/create_databases.rb
geordi-8.0.0 lib/geordi/commands/create_databases.rb
geordi-7.0.2 lib/geordi/commands/create_databases.rb