summaryrefslogtreecommitdiffstats
path: root/lib/puppet.rb
diff options
context:
space:
mode:
authorshadoi <shadoi@980ebf18-57e1-0310-9a29-db15c13687c0>2007-02-16 23:14:51 +0000
committershadoi <shadoi@980ebf18-57e1-0310-9a29-db15c13687c0>2007-02-16 23:14:51 +0000
commit0aa3b6683a37cee2a24dd8050e8242efe50856d5 (patch)
tree1f1530a0a4bbbd55f23cd7b54921bb378d937b48 /lib/puppet.rb
parent6555dadc51feaa58b3dcebc74e2c426a64353395 (diff)
downloadpuppet-0aa3b6683a37cee2a24dd8050e8242efe50856d5.tar.gz
puppet-0aa3b6683a37cee2a24dd8050e8242efe50856d5.tar.xz
puppet-0aa3b6683a37cee2a24dd8050e8242efe50856d5.zip
Change Puppet.name to Puppet.execname so rails 1.2 won't freak out.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2202 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet.rb')
-rw-r--r--lib/puppet.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet.rb b/lib/puppet.rb
index d6d9840bb..1b7f97b74 100644
--- a/lib/puppet.rb
+++ b/lib/puppet.rb
@@ -38,7 +38,7 @@ module Puppet
end
- def self.name
+ def Puppet.execname
unless defined? @name
@name = $0.gsub(/.+#{File::SEPARATOR}/,'').sub(/\.rb$/, '')
end