lib/health-data-standards/tasks/bundle.rake in health-data-standards-3.4.6 vs lib/health-data-standards/tasks/bundle.rake in health-data-standards-3.5.0

- old
+ new

@@ -4,11 +4,11 @@ namespace :bundle do desc 'Activate/Inactivate a measure bundle' task :activate,[:version,:active] => [:environment] do |task, args| - bundle = Bundle.where({version: args.version}) + bundle = HealthDataStandards::CQM::Bundle.where({version: args.version}) if bundle.count == 0 puts "Cannot find bundle with version number #{args.version}" return end @@ -21,11 +21,11 @@ end desc 'List bundles' task :list => [:environment] do - Bundle.where({}).each do |b| + HealthDataStandards::CQM::Bundle.where({}).each do |b| puts "Bundle #{b.title} - #{b.version} active: #{b.active}" end end @@ -47,10 +47,10 @@ extensions: bundle_contents[:extensions].count, value_sets: bundle_contents.value_sets.count} if (args.create_indexes != 'false') ::Rails.application.eager_load! - ::Rails::Mongoid.create_indexes + ::Mongoid::Tasks::Database.create_indexes end puts "Successfully imported bundle at: #{args.bundle_path}" puts "\t Imported into environment: #{Rails.env.upcase}" if defined? Rails puts "\t Loaded #{args.type || 'all'} measures"