summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/application.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/puppet/application.rb b/lib/puppet/application.rb
index b944a554e..c3d7355f6 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