Sha256: f22c258f52cf831859be9b59a0817179e7b04b5ab3eadb5dace9798a759bc7aa

Contents?: true

Size: 382 Bytes

Versions: 5

Compression:

Stored size: 382 Bytes

Contents

namespace :galera do
  namespace :db do
    desc "Alters the database settings for the specified task"
    task :alter, [:task] => [:environment] do |t, args|
      configuration = ActiveRecord::Base.configurations[Rails.env]
      configuration['host'] = 'localhost'
      ActiveRecord::Base.establish_connection(configuration)
      Rake::Task[args.task].invoke
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
galera_cluster_migrations-1.0.1 lib/tasks/galera_cluster_migrations.rake
galera_cluster_migrations-1.0.1.beta2 lib/tasks/galera_cluster_migrations.rake
galera_cluster_migrations-1.0.1.beta1 lib/tasks/galera_cluster_migrations.rake
galera_cluster_migrations-1.0.0 lib/tasks/galera_cluster_migrations.rake
galera_cluster_migrations-0.0.1.alpha1 lib/tasks/galera_cluster_migrations.rake