lib/tasks/mixed_gauge.rake in mixed_gauge-1.2.0.beta2 vs lib/tasks/mixed_gauge.rake in mixed_gauge-1.2.0
- old
+ new
@@ -1,40 +1,40 @@
namespace :mixed_gauge do
desc 'Show all defined clusters and their detail'
- task info: %i(environment) do
+ task info: %i[environment] do
MixedGauge::DatabaseTasks.info
end
desc 'Setup all databases in all clusters'
- task setup: %i(create_all load_schema_all) do
+ task setup: %i[create_all load_schema_all] do
end
desc 'Create all databases in all clusters'
- task :create_all => :environment do
+ task create_all: :environment do
MixedGauge::DatabaseTasks.invoke_task_for_all_clusters('create')
end
desc 'Drop all databases in all clusters'
- task :drop_all => :environment do
+ task drop_all: :environment do
MixedGauge::DatabaseTasks.invoke_task_for_all_clusters('drop')
end
desc 'Load schema to all databases in all clusters'
- task :load_schema_all => :environment do
+ task load_schema_all: :environment do
MixedGauge::DatabaseTasks.invoke_task_for_all_clusters('load_schema')
end
desc 'Create all databases in specific cluster'
- task :create, %i(cluster_name) => %i(environment) do |_, args|
+ task :create, %i[cluster_name] => %i[environment] do |_, args|
MixedGauge::DatabaseTasks.create_all_databases(args)
end
desc 'Drop all databases in specific cluster'
- task :drop, %i(cluster_name) => %i(environment) do |_, args|
+ task :drop, %i[cluster_name] => %i[environment] do |_, args|
MixedGauge::DatabaseTasks.drop_all_databases(args)
end
desc 'Load schema to all databases in specific cluster'
- task :load_schema, %i(cluster_name) => %i(environment) do |_, args|
+ task :load_schema, %i[cluster_name] => %i[environment] do |_, args|
MixedGauge::DatabaseTasks.load_schema_all_databases(args)
end
end