summaryrefslogtreecommitdiffstats
path: root/bin/puppet
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-10-09 16:36:52 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-10-09 16:36:52 +0000
commitc8ea361d6af3cac2022d3726aafc1d9ae7c52f97 (patch)
tree4f1369649649b064aaec2e91fb3e3544118bbc19 /bin/puppet
parent1c6cb608660165d688adc4aafce7e773d732be22 (diff)
downloadpuppet-c8ea361d6af3cac2022d3726aafc1d9ae7c52f97.tar.gz
puppet-c8ea361d6af3cac2022d3726aafc1d9ae7c52f97.tar.xz
puppet-c8ea361d6af3cac2022d3726aafc1d9ae7c52f97.zip
Fixing #301 -- s/logfile/logdest/g
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1748 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'bin/puppet')
-rwxr-xr-xbin/puppet12
1 files changed, 8 insertions, 4 deletions
diff --git a/bin/puppet b/bin/puppet
index 025522417..3148cbd50 100755
--- a/bin/puppet
+++ b/bin/puppet
@@ -8,7 +8,7 @@
# = Usage
#
# puppet [-h|--help] [-V|--version] [-d|--debug] [-v|--verbose]
-# [-l|--logfile <file>] <file>
+# [-l|--logdest <file>] <file>
#
# = Description
#
@@ -39,7 +39,7 @@
# /etc/puppet/classes.txt), and setting this option causes all of those classes
# to be set in your +puppet+ manifest.
#
-# logfile::
+# logdest::
# Where to send messages. Choose between syslog, the console, and a log file.
# Defaults to sending messages to the console.
#
@@ -93,6 +93,7 @@ verbose = false
noop = false
logfile = false
loadclasses = false
+logset = false
code = nil
@@ -100,8 +101,6 @@ master = {
:Local => true
}
-Puppet::Log.newdestination(:console)
-
begin
result.each { |opt,arg|
case opt
@@ -128,6 +127,7 @@ begin
when "--logdest"
begin
Puppet::Log.newdestination(arg)
+ logset = true
rescue => detail
$stderr.puts detail.to_s
end
@@ -143,6 +143,10 @@ rescue GetoptLong::InvalidOption => detail
exit(1)
end
+unless logset
+ Puppet::Log.newdestination(:console)
+end
+
client = nil
server = nil