@@ -15,67 +15,69 @@ def config(&block)
1515 overide_connect_goo = false
1616
1717 # Set defaults
18- @settings . goo_backend_name ||= " 4store"
18+ @settings . goo_backend_name ||= ' 4store'
1919 @settings . goo_port ||= 9000
20- @settings . goo_host ||= " localhost"
21- @settings . goo_path_query ||= " /sparql/"
22- @settings . goo_path_data ||= " /data/"
23- @settings . goo_path_update ||= " /update/"
24- @settings . search_server_url ||= " http://localhost:8983/solr/term_search_core1"
25- @settings . property_search_server_url ||= " http://localhost:8983/solr/prop_search_core1"
26- @settings . repository_folder ||= " ./test/data/ontology_files/repo"
27- @settings . rest_url_prefix ||= " http://data.bioontology.org/"
20+ @settings . goo_host ||= ' localhost'
21+ @settings . goo_path_query ||= ' /sparql/'
22+ @settings . goo_path_data ||= ' /data/'
23+ @settings . goo_path_update ||= ' /update/'
24+ @settings . search_server_url ||= ' http://localhost:8983/solr/term_search_core1'
25+ @settings . property_search_server_url ||= ' http://localhost:8983/solr/prop_search_core1'
26+ @settings . repository_folder ||= ' ./test/data/ontology_files/repo'
27+ @settings . rest_url_prefix ||= ' http://data.bioontology.org/'
2828 @settings . enable_security ||= false
2929 @settings . enable_slices ||= false
3030
31+ # Java/JVM options
32+ @settings . java_max_heap_size ||= '10240M'
3133 ### these params should be not ussed any more
3234 # removed so that dependencies shout
3335 #
3436 # @settings.redis_host ||= "localhost"
3537 # @settings.redis_port ||= 6379
3638 # ###
3739
38- @settings . ui_host ||= " bioportal.bioontology.org"
40+ @settings . ui_host ||= ' bioportal.bioontology.org'
3941 @settings . replace_url_prefix ||= false
40- @settings . id_url_prefix ||= " http://data.bioontology.org/"
42+ @settings . id_url_prefix ||= ' http://data.bioontology.org/'
4143 @settings . queries_debug ||= false
4244 @settings . enable_monitoring ||= false
43- @settings . cube_host ||= " localhost"
45+ @settings . cube_host ||= ' localhost'
4446 @settings . cube_port ||= 1180
4547
4648 # Caching http
4749 @settings . enable_http_cache ||= false
48- @settings . http_redis_host ||= " localhost"
50+ @settings . http_redis_host ||= ' localhost'
4951 @settings . http_redis_port ||= 6379
5052
5153 #Caching goo
52- @settings . goo_redis_host ||= " localhost"
54+ @settings . goo_redis_host ||= ' localhost'
5355 @settings . goo_redis_port ||= 6379
5456
5557 #Ontology Analytics Redis
56- @settings . ontology_analytics_redis_host ||= " localhost"
58+ @settings . ontology_analytics_redis_host ||= ' localhost'
5759 @settings . ontology_analytics_redis_port ||= 6379
5860
5961 # PURL server config parameters
6062 @settings . enable_purl ||= false
61- @settings . purl_host ||= " purl.bioontology.org"
63+ @settings . purl_host ||= ' purl.bioontology.org'
6264 @settings . purl_port ||= 80
63- @settings . purl_username ||= ""
64- @settings . purl_password ||= ""
65- @settings . purl_maintainers ||= ""
66- @settings . purl_target_url_prefix ||= " http://bioportal.bioontology.org"
65+ @settings . purl_username ||= ''
66+ @settings . purl_password ||= ''
67+ @settings . purl_maintainers ||= ''
68+ @settings . purl_target_url_prefix ||= ' http://bioportal.bioontology.org'
6769
6870 # Email settings
6971 @settings . enable_notifications ||= false
70- @settings . email_sender ||= " admin@example.org" # Default sender for emails
71- @settings . email_override ||= " test.email@example.org" # By default, all email gets sent here. Disable with email_override_disable.
72+ @settings . email_sender ||= ' admin@example.org' # Default sender for emails
73+ @settings . email_override ||= ' test.email@example.org' # By default, all email gets sent here. Disable with email_override_disable.
7274 @settings . email_disable_override ||= false
73- @settings . smtp_host ||= " localhost"
75+ @settings . smtp_host ||= ' localhost'
7476 @settings . smtp_port ||= 25
75- @settings . smtp_user ||= " user"
76- @settings . smtp_password ||= " password"
77+ @settings . smtp_user ||= ' user'
78+ @settings . smtp_password ||= ' password'
7779 @settings . smtp_auth_type ||= :none # :none, :plain, :login, :cram_md5
78- @settings . smtp_domain ||= " localhost.localhost"
80+ @settings . smtp_domain ||= ' localhost.localhost'
7981 @settings . enable_starttls_auto ||= false # set to true for use with gmail
8082
8183 # number of times to retry a query when empty records are returned
@@ -89,19 +91,19 @@ def config(&block)
8991
9092 unless @settings . redis_host . nil?
9193 puts "Error: 'redis_host' is not a valid conf parameter."
92- puts " Redis databases were split into multiple hosts (09/22/13)."
93- raise Exception , " redis_host is not a valid conf parameter."
94+ puts ' Redis databases were split into multiple hosts (09/22/13).'
95+ raise Exception , ' redis_host is not a valid conf parameter.'
9496 end
9597
9698 # Check to make sure url prefix has trailing slash
97- @settings . rest_url_prefix = @settings . rest_url_prefix + "/" unless @settings . rest_url_prefix [ -1 ] . eql? ( "/" )
99+ @settings . rest_url_prefix = @settings . rest_url_prefix + '/' unless @settings . rest_url_prefix [ -1 ] . eql? ( '/' )
98100
99101 puts "(LD) >> Using rdf store #{ @settings . goo_host } :#{ @settings . goo_port } "
100102 puts "(LD) >> Using term search server at #{ @settings . search_server_url } "
101103 puts "(LD) >> Using property search server at #{ @settings . property_search_server_url } "
102- puts " (LD) >> Using HTTP Redis instance at " +
104+ puts ' (LD) >> Using HTTP Redis instance at ' +
103105 "#{ @settings . http_redis_host } :#{ @settings . http_redis_port } "
104- puts " (LD) >> Using Goo Redis instance at " +
106+ puts ' (LD) >> Using Goo Redis instance at ' +
105107 "#{ @settings . goo_redis_host } :#{ @settings . goo_redis_port } "
106108
107109 connect_goo unless overide_connect_goo
0 commit comments