Module: NcsNavigator::Warehouse

Defined in:
lib/ncs_navigator/warehouse.rb,
lib/ncs_navigator/warehouse/cli.rb,
lib/ncs_navigator/warehouse/hooks.rb,
lib/ncs_navigator/warehouse/models.rb,
lib/ncs_navigator/warehouse/filters.rb,
lib/ncs_navigator/warehouse/version.rb,
lib/ncs_navigator/warehouse/contents.rb,
lib/ncs_navigator/warehouse/comparator.rb,
lib/ncs_navigator/warehouse/postgresql.rb,
lib/ncs_navigator/warehouse/data_mapper.rb,
lib/ncs_navigator/warehouse/xml_emitter.rb,
lib/ncs_navigator/warehouse/transformers.rb,
lib/ncs_navigator/warehouse/configuration.rb,
lib/ncs_navigator/warehouse/table_modeler.rb,
lib/ncs_navigator/warehouse/transform_load.rb,
lib/ncs_navigator/warehouse/updating_shell.rb,
lib/ncs_navigator/warehouse/stringify_trace.rb,
lib/ncs_navigator/warehouse/transform_status.rb,
lib/ncs_navigator/warehouse/database_initializer.rb

Defined Under Namespace

Modules: DataMapper, Filters, Hooks, Models, PostgreSQL, StringifyTrace, Transformers Classes: CLI, Comparator, Configuration, Contents, DatabaseInitializer, TableModeler, TransformError, TransformLoad, TransformStatus, UpdatingShell, XmlEmitter

Constant Summary collapse

DEFAULT_MDES_VERSION =

The default version of MDES for this version of the warehouse.

'2.0'
VERSION =
'0.14.0'

Class Method Summary collapse

Class Method Details

.bcdatabaseBcdatabase::DatabaseConfigurations

Returns the set of bcdatabase configurations to use throughout the warehouse.

Returns:

  • (Bcdatabase::DatabaseConfigurations)

    the set of bcdatabase configurations to use throughout the warehouse.



57
58
59
# File 'lib/ncs_navigator/warehouse.rb', line 57

def bcdatabase
  @bcdatabase ||= Bcdatabase.load(:transforms => [:datamapper])
end

.bcdatabase=(bcdb)

This method returns an undefined value.

Specify a set of bcdatabase configurations to use. (Mostly intended for testing.)

Parameters:

  • bcdb (Bcdatabase::DatabaseConfigurations)


67
68
69
# File 'lib/ncs_navigator/warehouse.rb', line 67

def bcdatabase=(bcdb)
  @bcdatabase = bcdb
end

.envString

The name of the environment in which this warehouse is running; ex: "development" (The default), "staging", or "production". This value can be set from the environment variable NCS_NAVIGATOR_ENV.

Returns:

  • (String)


37
38
39
# File 'lib/ncs_navigator/warehouse.rb', line 37

def env
  @env ||= ENV['NCS_NAVIGATOR_ENV'] || 'development'
end

.env=(name) ⇒ String

Change the warehouse's runtime environment. Using the environment variable NCS_NAVIGATOR_ENV is preferable because it will ensure that the environment is set to the desired value from the beginning of the process. This method is mainly for use in tests.

Parameters:

  • name (String)

Returns:

  • (String)


50
51
52
# File 'lib/ncs_navigator/warehouse.rb', line 50

def env=(name)
  @env = name
end