Method: Puppet::ModuleTool::Metadata#update
- Defined in:
- lib/puppet/module_tool/metadata.rb
#update(data) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Merges the current set of metadata with another metadata hash. This method also handles the validation of module names and versions, in an effort to be proactive about module publishing constraints.
53 54 55 56 57 58 59 60 61 62 |
# File 'lib/puppet/module_tool/metadata.rb', line 53 def update(data) process_name(data) if data['name'] process_version(data) if data['version'] process_source(data) if data['source'] process_data_provider(data) if data['data_provider'] merge_dependencies(data) if data['dependencies'] @data.merge!(data) self end |