Module: PuppetMetadata
- Defined in:
- lib/puppet_metadata.rb,
lib/puppet_metadata/aio.rb,
lib/puppet_metadata/beaker.rb,
lib/puppet_metadata/metadata.rb,
lib/puppet_metadata/github_actions.rb,
lib/puppet_metadata/operatingsystem.rb
Overview
A module that provides abstractions around Puppet’s metadata format.
Defined Under Namespace
Classes: AIO, Beaker, GithubActions, InvalidMetadataException, Metadata, OperatingSystem
Class Method Summary collapse
-
.parse(data) ⇒ PuppetMetadata::Metadata
Parse a JSON encoded metadata string.
-
.read(path) ⇒ PuppetMetadata::Metadata
Read and parse a path containing metadata.
Class Method Details
.parse(data) ⇒ PuppetMetadata::Metadata
Parse a JSON encoded metadata string
14 15 16 |
# File 'lib/puppet_metadata.rb', line 14 def self.parse(data) Metadata.new(JSON.parse(data)) end |
.read(path) ⇒ PuppetMetadata::Metadata
Read and parse a path containing metadata
21 22 23 |
# File 'lib/puppet_metadata.rb', line 21 def self.read(path) parse(File.read(path)) end |