Sha256: 13d964d7fd5fda8730f1d665fd4abee6f7362d0bdc2ce4394873abaa0f31a8d4

Contents?: true

Size: 623 Bytes

Versions: 7

Compression:

Stored size: 623 Bytes

Contents

require 'parseconfig'
require_relative "module.rb"

module Qricker
  class ModuleCache
    attr_accessor :allModules
    def initialize(rctlFile)
      config = ParseConfig.new(rctlFile)
      if config.nil?
        Error("RCTL file is invalid!!!")
      end

      allSpecs = []
      config.get_groups.each {|group|
        allSpecs << RickerSpec.new(group, config[group]["PATH"])
      }
      @allModules = allSpecs
    end

    def moduleByName(name)
      specModuel = nil
      @allModules.each { |sm|
        if sm.name == name
          specModuel = sm
        end
      }
      return specModuel
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
qricker-0.1.13 lib/qricker/module_cache.rb
qricker-0.0.12 lib/qricker/module_cache.rb
qricker-0.0.10 lib/qricker/module_cache.rb
qricker-0.0.9 lib/qricker/module_cache.rb
qricker-0.0.8 lib/qricker/module_cache.rb
qricker-0.0.7 lib/qricker/module_cache.rb
qricker-0.0.6 lib/qricker/module_cache.rb