HomePhorge

Move Puppet version into lib/puppet/version.rb
b33d517ca2acUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Move Puppet version into lib/puppet/version.rb

Without this patch the entire Puppet library must be loaded in order to
get the version. This is problematic for executed metadata files like
the rubygems gemspec or bundler Gemfile.

This patch fixes the problem by moving the Puppet.version method and
Puppet::VERSION constant into an isolated small file. Gemfile and
gemspec files may determine the version using require 'puppet/version'

Details

Provenance
Jeff McCune <jeff@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU1c1a383f7b2f: (#15464) Make contributing easy via bundle Gemfile
Branches
Unknown
Tags
Unknown

Event Timeline

Jeff McCune <jeff@puppetlabs.com> committed rPUb33d517ca2ac: Move Puppet version into lib/puppet/version.rb (authored by Jeff McCune <jeff@puppetlabs.com>).Aug 17 2012, 7:35 AM