summaryrefslogtreecommitdiffstats
path: root/lib/puppet/application
diff options
context:
space:
mode:
authorPieter van de Bruggen <pieter@puppetlabs.com>2011-03-23 16:10:45 -0700
committerPieter van de Bruggen <pieter@puppetlabs.com>2011-03-23 16:10:45 -0700
commit7aa8f2252c7b0512c929fb87a6c3a09a952a142a (patch)
tree0e65699d002c28ba0abacfaf41b693519fc2ef6f /lib/puppet/application
parent1187a0eb2550f04d9b6c3dcfdcacdfbb32de0e56 (diff)
(#6770) Changing versioning to semver.
More information about the versioning scheme can be found at http://semver.org. Paired-With: Nick Lewis
Diffstat (limited to 'lib/puppet/application')
-rw-r--r--lib/puppet/application/configurer.rb4
-rw-r--r--lib/puppet/application/interface.rb2
-rw-r--r--lib/puppet/application/interface_base.rb4
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/puppet/application/configurer.rb b/lib/puppet/application/configurer.rb
index a76aaaf01..92c8d69d0 100644
--- a/lib/puppet/application/configurer.rb
+++ b/lib/puppet/application/configurer.rb
@@ -17,7 +17,7 @@ class Puppet::Application::Configurer < Puppet::Application
end
def run_command
- report = Puppet::Interface.interface(:configurer, 1).synchronize(Puppet[:certname])
- Puppet::Interface.interface(:report, 1).submit(report)
+ report = Puppet::Interface.interface(:configurer, '0.0.1').synchronize(Puppet[:certname])
+ Puppet::Interface.interface(:report, '0.0.1').submit(report)
end
end
diff --git a/lib/puppet/application/interface.rb b/lib/puppet/application/interface.rb
index 99c10dc16..3771ecead 100644
--- a/lib/puppet/application/interface.rb
+++ b/lib/puppet/application/interface.rb
@@ -81,7 +81,7 @@ class Puppet::Application::Interface < Puppet::Application
end
def actions(indirection)
- return [] unless interface = Puppet::Interface.interface(indirection, 1)
+ return [] unless interface = Puppet::Interface.interface(indirection, '0.0.1')
interface.load_actions
return interface.actions.sort { |a,b| a.to_s <=> b.to_s }
end
diff --git a/lib/puppet/application/interface_base.rb b/lib/puppet/application/interface_base.rb
index 78772833e..7d8885b3f 100644
--- a/lib/puppet/application/interface_base.rb
+++ b/lib/puppet/application/interface_base.rb
@@ -72,10 +72,10 @@ class Puppet::Application::InterfaceBase < Puppet::Application
@type = self.class.name.to_s.sub(/.+:/, '').downcase.to_sym
# TODO: These should be configurable versions.
- unless Puppet::Interface.interface?(@type, 1)
+ unless Puppet::Interface.interface?(@type, '0.0.1')
raise "Could not find version #{1} of interface '#{@type}'"
end
- @interface = Puppet::Interface.interface(@type, 1)
+ @interface = Puppet::Interface.interface(@type, '0.0.1')
@format ||= @interface.default_format
# We copy all of the app options to the interface.