diff options
author | Luke Kanies <luke@madstop.com> | 2009-04-21 01:20:36 -0500 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-04-22 14:39:40 +1000 |
commit | 7a98459706318c2fbbfd11749333a61767ec9aae (patch) | |
tree | 901cc6bfb53f12bfa5be6b09ffae3c4c5e5f9246 /lib | |
parent | d06bd3ede2a5ba0017e90e2937092a986d5b356c (diff) | |
download | puppet-7a98459706318c2fbbfd11749333a61767ec9aae.tar.gz puppet-7a98459706318c2fbbfd11749333a61767ec9aae.tar.xz puppet-7a98459706318c2fbbfd11749333a61767ec9aae.zip |
Removing code that was backported and is now not needed
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/application/puppetqd.rb | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/lib/puppet/application/puppetqd.rb b/lib/puppet/application/puppetqd.rb index e65ce75dc..007bd89ec 100644 --- a/lib/puppet/application/puppetqd.rb +++ b/lib/puppet/application/puppetqd.rb @@ -4,43 +4,6 @@ require 'puppet/application' require 'puppet/node/catalog' require 'puppet/indirector/catalog/queue' - -# BACKPORT - this method should be removed when merged into master. -class Puppet::Util::Settings - # Generate the list of valid arguments, in a format that OptionParser can - # understand, and add them to the passed option list. - def optparse_addargs(options) - # Add all of the config parameters as valid options. - self.each { |name, element| - options << element.optparse_args - } - - return options - end -end - -# BACKPORT - this method should be removed when merged into master. -class Puppet::Util::Settings::CElement - # get the arguments in OptionParser format - def optparse_args - if short - ["--#{name}", "-#{short}", desc, :REQUIRED] - else - ["--#{name}", desc, :REQUIRED] - end - end -end - -class Puppet::Util::Settings::CBoolean - def optparse_args - if short - ["--[no-]#{name}", "-#{short}", desc, :NONE ] - else - ["--[no-]#{name}", desc, :NONE] - end - end -end - Puppet::Application.new(:puppetqd) do extend Puppet::Daemon @@ -79,18 +42,6 @@ Puppet::Application.new(:puppetqd) do while true do sleep 1000 end end - # This is the main application entry point. - # BACKPORT - this method should be removed when merged into master. - # This method had to be added because Puppet.settings.parse takes no - # arguments in master but requires an argument in 0.24.x. - def run - run_preinit - parse_options - Puppet.settings.parse(Puppet[:config]) if should_parse_config? and File.exist?(Puppet[:config]) - run_setup - run_command - end - # Handle the logging settings. def setup_logs if options[:debug] or options[:verbose] |