Sha256: db604ac66a974c7fcdf39a1a0c813aca2aa960a2352eed6975c768cb40f4720a

Contents?: true

Size: 436 Bytes

Versions: 4

Compression:

Stored size: 436 Bytes

Contents

module Hieracles
  module Registry
  	extend self

  	def farms(config)
  		@_farms ||= Dir.glob(format(config.classpath, '*')).sort
  	end

  	def nodes(config)
  		@_nodes ||= Dir.glob(File.join(config.encpath, '*.yaml')).sort.map do |f|
  			File.basename(f, '.yaml')
  		end
  	end

  	def modules(config)
  		@_modules ||= Dir.glob(File.join(config.modulepath, '*')).sort.map do |f|
  			File.basename(f)
  		end
  	end

	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hieracles-0.3.0 lib/hieracles/registry.rb
hieracles-0.2.2 lib/hieracles/registry.rb
hieracles-0.2.1 lib/hieracles/registry.rb
hieracles-0.2.0 lib/hieracles/registry.rb