Module: CaTissue::PropertiesLoader
- Included in:
- CaTissue
- Defined in:
- lib/catissue/helpers/properties_loader.rb
Overview
PropertiesLoader is a mix-in which loads the caTissue application, classpath and database properties.
The default properties file is determined as follows:
* +./.catissue+, if it exists
* +~/.catissue+, otherwise
Defined Under Namespace
Classes: ConfigurationError
Instance Method Summary collapse
-
#properties ⇒ {Symbol => [String, <String>]}
The CaTissue properties include the following: * the
CaRuby::Database::ACCESS_OPTS
* theCaRuby::SQLExecutor::ACCESS_OPTS
* the application Java classpath.
Instance Method Details
#properties ⇒ {Symbol => [String, <String>]}
The CaTissue properties include the following:
-
the
CaRuby::Database::ACCESS_OPTS
-
the
CaRuby::SQLExecutor::ACCESS_OPTS
-
the application Java classpath
If the CATISSUE_CLIENT_HOME
environment variable is set to the caTissue client installation directory or the caRuby Tissue client is started in that directory, then the classpath can be inferred by this loader.
The host
and port
can be inferred from the first remoteServices.xml
file in the classpath.
The required application connection properties include user
and password
.
The required database properties include the following:
-
database_host
-
database_port
-
database
-
database_user
-
database_password
35 36 37 |
# File 'lib/catissue/helpers/properties_loader.rb', line 35 def properties @properties ||= load_properties end |