summaryrefslogtreecommitdiffstats
path: root/lib/puppet/application
diff options
context:
space:
mode:
authorPieter van de Bruggen <pieter@puppetlabs.com>2011-03-25 14:52:48 -0700
committerPieter van de Bruggen <pieter@puppetlabs.com>2011-03-28 18:07:15 -0700
commit4609e203fd47f8159118bb74a8308f9c6aee179f (patch)
treec3feec649a86d9f7bdf15e24053fdf6c2f2b8df6 /lib/puppet/application
parent2ad8c96935ec53c2d98201ad77fd070dc40dadb6 (diff)
downloadpuppet-4609e203fd47f8159118bb74a8308f9c6aee179f.tar.gz
puppet-4609e203fd47f8159118bb74a8308f9c6aee179f.tar.xz
puppet-4609e203fd47f8159118bb74a8308f9c6aee179f.zip
(#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
Diffstat (limited to 'lib/puppet/application')
-rw-r--r--lib/puppet/application/string_base.rb4
1 files changed, 2 insertions, 2 deletions
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.