Class | AutomateIt::TagManager::YAML |
In: |
lib/automateit/tag_manager/yaml.rb
|
Parent: | AutomateIt::TagManager::Struct |
A TagManager driver that reads tags from a YAML file.
Options:
# File lib/automateit/tag_manager/yaml.rb, line 14 def setup(opts={}) if filename = opts.delete(:file) contents = _read(filename) output = HelpfulERB.new(contents, filename).result text = AutomateIt::TagManager::TagParser.normalize(output) opts[:struct] = ::YAML::load(text) end super(opts) end