class Longleaf::SystemConfigBuilder

Test helper for constructing system configuration hashes

Attributes

config[RW]

Public Class Methods

new() click to toggle source
# File lib/longleaf/specs/system_config_builder.rb, line 11
def initialize
  @config = Hash.new
end

Public Instance Methods

get() click to toggle source

@return the constructed configuration

# File lib/longleaf/specs/system_config_builder.rb, line 23
def get
  @config
end
with_index(adapter, connection) click to toggle source
# File lib/longleaf/specs/system_config_builder.rb, line 15
def with_index(adapter, connection)
  @config[SCF::MD_INDEX] = Hash.new
  @config[SCF::MD_INDEX][SCF::MD_INDEX_ADAPTER] = adapter
  @config[SCF::MD_INDEX][SCF::MD_INDEX_CONNECTION] = connection
  self
end