Sha256: da37e5faa250c82609abba2ac18c306ca9805c57200531bff478e2d80983367e
Contents?: true
Size: 475 Bytes
Versions: 1
Compression:
Stored size: 475 Bytes
Contents
module Animal module Plugins module Storage # The basic, YAML storage plugin class Yaml < StoragePlugin def self.all(type) # TODO: add caching in here... results = [] Dir.chdir File.expand_path(File.join(ANIMAL_HOME, "#{type}.d")) do Dir.glob('*.yml').each do |file| results.concat ::YAML.load_file(file) end end results end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
animal-0.2.2 | lib/animal/plugins/storage/yaml.rb |