Sha256: f39da11fd21960f5e36ae803fae2c3be446f4c8156569ba11b995ffb68bfe568
Contents?: true
Size: 458 Bytes
Versions: 1
Compression:
Stored size: 458 Bytes
Contents
require 'yaml' module AnsibleDocGenerator module PlaybookHelpers private def delete_if_exists path FileUtils.remove_entry(path, true) end def paths @paths ||= roles.map{|role| role['role'] } end def roles playbook['roles'] end def project_folder @project_folder ||= File.dirname(playbook_path) end def playbook @playbook ||= YAML.load_file(playbook_path).first end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ansible_doc_generator-0.1.0 | lib/ansible_doc_generator/playbook_helpers.rb |