Sha256: 55ac5e21433ed96b970f4d769a5fff509f15b5799b531b5a65f0a8cfb37b46dd

Contents?: true

Size: 1.38 KB

Versions: 14

Compression:

Stored size: 1.38 KB

Contents

require_relative 'repositories/in_memory_repository'
require_relative 'repositories/validate_runnable_reference'
require_relative 'repositories/test_groups'
require_relative 'repositories/test_suites'
require_relative 'repositories/tests'
require_relative 'repositories/test_kits'

# Skip loading things which require the db when not necessary, such as CLI
# commands which don't need the db
unless ENV['NO_DB']&.casecmp? 'true'
  require_relative 'repositories/repository'
  require_relative 'repositories/headers'
  require_relative 'repositories/messages'
  require_relative 'repositories/requests'
  require_relative 'repositories/results'
  require_relative 'repositories/session_data'
  require_relative 'repositories/test_runs'
  require_relative 'repositories/test_sessions'
  require_relative 'repositories/validator_sessions'
end

module Inferno
  # Repositories provide an abstraction layer for dealing with entity
  # persistence. All code for interacting with the database lives in
  # repositories. The rest of the codebase interacts with the database through a
  # public api provided by various repositories.
  #
  # **Naming Convention:** A repository should be named the plural version of
  # the entity name. For example:
  #
  # - `TestSessions` is the repsitory for the `TestSession` entity
  # - `TestGroups` is the repository for the `TestGroup` entity
  module Repositories
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
inferno_core-0.6.1 lib/inferno/repositories.rb
inferno_core-0.6.0 lib/inferno/repositories.rb
inferno_core-0.5.4 lib/inferno/repositories.rb
inferno_core-0.5.3 lib/inferno/repositories.rb
inferno_core-0.5.2 lib/inferno/repositories.rb
inferno_core-0.5.1 lib/inferno/repositories.rb
inferno_core-0.5.0 lib/inferno/repositories.rb
inferno_core-0.4.44 lib/inferno/repositories.rb
inferno_core-0.4.43 lib/inferno/repositories.rb
inferno_core-0.4.42 lib/inferno/repositories.rb
inferno_core-0.4.41 lib/inferno/repositories.rb
inferno_core-0.4.40 lib/inferno/repositories.rb
inferno_core-0.4.39 lib/inferno/repositories.rb
inferno_core-0.4.38 lib/inferno/repositories.rb