health-data-standards 3.0.3 → 3.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ namespace :bundle do
|
|
6
6
|
desc 'Import a quality bundle into the database.'
|
7
7
|
task :import, [:bundle_path, :delete_existing, :update_measures, :type] => [:environment] do |task, args|
|
8
8
|
raise "The path to the measures zip file must be specified" unless args.bundle_path
|
9
|
-
options = {:
|
9
|
+
options = {:delete_existing => (args.delete_existing == "true"),
|
10
10
|
:type => args.type ,
|
11
11
|
:update_measures => (args.update_measures == "true")
|
12
12
|
}
|
@@ -15,6 +15,9 @@ namespace :bundle do
|
|
15
15
|
importer = HealthDataStandards::Import::Bundle::Importer
|
16
16
|
bundle_contents = importer.import(bundle, options)
|
17
17
|
|
18
|
+
::Rails.application.eager_load!
|
19
|
+
::Rails::Mongoid.create_indexes
|
20
|
+
|
18
21
|
puts "Successfully imported bundle at: #{args.bundle_path}"
|
19
22
|
puts "\t Imported into environment: #{Rails.env.upcase}" if defined? Rails
|
20
23
|
puts "\t Loaded #{args.type || 'all'} measures"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: health-data-standards
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2013-02-
|
16
|
+
date: 2013-02-28 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: rest-client
|