lib/pdk/generators/puppet_object.rb
def module_metadata
        @module_metadata ||= begin
          PDK::Module::Metadata.from_file(File.join(module_dir, 'metadata.json'))
        rescue ArgumentError => e
          raise PDK::CLI::FatalError, _("'%{dir}' does not contain valid Puppet module metadata: %{msg}") % { dir: module_dir, msg: e.message }
        end
      end
# Parses the metadata.json file for the module.
#
# @raise [PDK::CLI::FatalError] if the metadata.json file does not exist,
#   can not be read, or contains invalid metadata.
#
# @return [PDK::Module::Metadata] the parsed module metadata.
#
# @api private
Parses the metadata.json file for the module.
Parses the metadata . json file for the module .
def module_metadata
        @module_metadata ||= begin
          PDK::Module::Metadata.from_file(File.join(module_dir, 'metadata.json'))
        rescue ArgumentError => e
          raise PDK::CLI::FatalError, _("'%{dir}' does not contain valid Puppet module metadata: %{msg}") % { dir: module_dir, msg: e.message }
        end
      end
def module_metadata @module_metadata ||= begin PDK :: Module :: Metadata . from_file ( File . join ( module_dir , 'metadata.json' ) ) rescue ArgumentError => e raise PDK :: CLI :: FatalError , _ ( "'%{dir}' does not contain valid Puppet module metadata: %{msg}" ) % { dir : module_dir , msg : e . message } end end
Parses the metadata.json file for the module.
Parses the metadata . json file for the module .
the parsed module metadata.
the parsed module metadata .
PDK::Module::Metadata
[PDK::CLI::FatalError] if the metadata.json file does not exist, can not be read, or contains invalid metadata.
[ PDK :: CLI :: FatalError ] if the metadata . json file does not exist can not be read or contains invalid metadata .
api
None