From 4609e203fd47f8159118bb74a8308f9c6aee179f Mon Sep 17 00:00:00 2001 From: Pieter van de Bruggen Date: Fri, 25 Mar 2011 14:52:48 -0700 Subject: (#6770) Change versioning; adopt :current over :latest. As per discussion with Luke, versions of an interface are first looked up by requiring 'puppet/interface/{name}', and secondarily looked up by requiring '{name}@{version}/puppet/interface/{name}' if the first failed. A version of `:current` can be used to represent the version living in 'puppet/interface/{name}'. Paired-With: Nick Lewis --- lib/puppet/application/string_base.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/puppet/application/string_base.rb') diff --git a/lib/puppet/application/string_base.rb b/lib/puppet/application/string_base.rb index 5b701597d..bc627adde 100644 --- a/lib/puppet/application/string_base.rb +++ b/lib/puppet/application/string_base.rb @@ -72,10 +72,10 @@ class Puppet::Application::StringBase < Puppet::Application @type = self.class.name.to_s.sub(/.+:/, '').downcase.to_sym # TODO: These should be configurable versions. - unless Puppet::String.string?(@type, :latest) + unless Puppet::String.string?(@type, :current) raise "Could not find any version of string '#{@type}'" end - @string = Puppet::String[@type, :latest] + @string = Puppet::String[@type, :current] @format ||= @string.default_format # We copy all of the app options to the string. -- cgit