[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 2.6.5rc1-120-g2247c80

Daniel Pittman daniel at rimspace.net
Mon Feb 7 06:43:13 UTC 2011


The following commit has been merged in the upstream branch:
commit 04ea8269e70e9c1f81394ac6da2b48dcfb49b1d5
Author: Daniel Pittman <daniel at rimspace.net>
Date:   Thu Feb 3 16:19:03 2011 -0800

    (#5823) document the not-an-API status of set_run_mode
    
    Since this is totally not API, document that in big, threatening letters so
    that folks actually know what is going on.  Include promises so they don't
    feel too unhappy with us.
    
    Paired-with: matt at puppetlabs.com

diff --git a/lib/puppet/application.rb b/lib/puppet/application.rb
index b944a55..c3d7355 100644
--- a/lib/puppet/application.rb
+++ b/lib/puppet/application.rb
@@ -270,6 +270,13 @@ class Application
     require 'puppet'
   end
 
+  # WARNING: This is a totally scary, frightening, and nasty internal API.  We
+  # strongly advise that you do not use this, and if you insist, we will
+  # politely allow you to keep both pieces of your broken code.
+  #
+  # We plan to provide a supported, long-term API to deliver this in a way
+  # that you can use.  Please make sure that you let us know if you do require
+  # this, and this message is still present in the code. --daniel 2011-02-03
   def set_run_mode(mode)
     @run_mode = mode
     $puppet_application_mode = @run_mode

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list