class Disloku::Config::Target

Attributes

connection[RW]
name[RW]

Public Class Methods

new(name, targetConfig, mappingStore, connectionStore) click to toggle source
# File lib/disloku/config/Target.rb, line 10
def initialize(name, targetConfig, mappingStore, connectionStore)
        @name = name
        @config = targetConfig

        if (@config["connection"].value().kind_of?(String))
                @connection = connectionStore.get(@config["connection"].value())
        else
                @connection = Connection.new(@config["connection"])
        end

        @mapping = Mapping.new(@config, mappingStore)
end

Public Instance Methods

mapPath(pathSegments) click to toggle source
# File lib/disloku/config/Target.rb, line 23
def mapPath(pathSegments)
        return @mapping.mapPath(pathSegments)
end
method_missing(name, *args, &block) click to toggle source
# File lib/disloku/config/Target.rb, line 27
def method_missing(name, *args, &block)
        if (!@config.has?(name.to_s()))
                return nil
        end

        return @config[name.to_s()].value()
end