talia_core 0.4.14 → 0.4.15
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml
CHANGED
data/config/rdfstore.yml.example
CHANGED
@@ -1,13 +1,7 @@
|
|
1
1
|
---
|
2
2
|
production:
|
3
3
|
type: sesame
|
4
|
-
location: ./sesame_production.db
|
5
|
-
backend: native
|
6
4
|
test:
|
7
5
|
type: sesame
|
8
|
-
location: ./sesame_test.db
|
9
|
-
backend: native
|
10
6
|
development:
|
11
|
-
type: sesame
|
12
|
-
location: ./sesame_development.db
|
13
|
-
backend: native
|
7
|
+
type: sesame
|
@@ -305,15 +305,15 @@ end
|
|
305
305
|
puts
|
306
306
|
puts "Now migrating the databases"
|
307
307
|
%w(test development production).each do |env|
|
308
|
+
puts "Init database for #{env}"
|
308
309
|
raise("Error migrating #{env}") unless(system("rake db:migrate RAILS_ENV=#{env}"))
|
309
310
|
# raise("Error creating globalize tables in #{env}") unless(system("rake globalize:setup RAILS_ENV=#{env}"))
|
311
|
+
puts "Importing ontologies for #{env}"
|
312
|
+
system("rake talia_core:rdf_import files=ontologies/*.owl rdf_syntax=rdfxml RAILS_ENV=#{env}")
|
313
|
+
system("rake talia_core:owl_to_rdfs_update RAILS_ENV=#{env}")
|
310
314
|
puts "Migrated #{env}"
|
311
315
|
end
|
312
316
|
|
313
|
-
puts "Importing ontologies"
|
314
|
-
system('rake talia_core:rdf_import files=ontologies/*.owl rdf_syntax=rdfxml')
|
315
|
-
system('rake talia_core:owl_to_rdfs_update')
|
316
|
-
|
317
317
|
puts
|
318
318
|
puts "Configuration complete"
|
319
319
|
puts
|
@@ -4,21 +4,16 @@ require File.dirname(__FILE__) + '/../config/boot'
|
|
4
4
|
require "#{RAILS_ROOT}/config/environment"
|
5
5
|
require 'rails_generator'
|
6
6
|
require 'rails_generator/scripts/generate'
|
7
|
+
# Load the monkeypatching for the migrations
|
8
|
+
require "#{TALIA_CODE_ROOT}/generators/generator_helpers.rb"
|
7
9
|
|
8
10
|
# First time plugin, has to be done this way since it can not be loaded in
|
9
11
|
# a different way
|
10
|
-
puts "Install the restful authentication plugin"
|
12
|
+
puts "Install and configure the restful authentication plugin"
|
11
13
|
ARGV = ['install', 'git://github.com/technoweenie/restful-authentication.git']
|
12
14
|
require 'commands/plugin'
|
13
15
|
orig_name = $0
|
14
16
|
$0 = 'generate'
|
15
|
-
|
16
|
-
# Generate the admin first - this will also load the monkeypatches to prevent
|
17
|
-
# duplicate migration ids
|
18
|
-
puts "Install the adminstration backend"
|
19
|
-
Rails::Generator::Scripts::Generate.new.run(%w(talia_admin))
|
20
|
-
|
21
|
-
puts "Configure restful authentication"
|
22
17
|
Rails::Generator::Scripts::Generate.new.run(%w(authenticated user sessions))
|
23
18
|
|
24
19
|
puts "Install and configure role-requirements"
|
@@ -37,5 +32,8 @@ Commands::Plugin.parse!(['install', 'auto_complete'])
|
|
37
32
|
puts "Migrating the database"
|
38
33
|
system("rake db:migrate")
|
39
34
|
|
35
|
+
puts "Install the adminstration backend"
|
36
|
+
Rails::Generator::Scripts::Generate.new.run(%w(talia_admin))
|
37
|
+
|
40
38
|
migration_path = File.join(RAILS_ROOT, 'db', 'migrate')
|
41
39
|
ActiveRecord::Migrator.migrate(migration_path)
|