diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-01-30 05:27:56 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-01-30 05:27:56 +0000 |
| commit | 01ec5ba96f8bf53f77974785d60ef79553488f08 (patch) | |
| tree | 6648903e7877c413e5721568c8d1c2913b791292 /lib/puppet/external/base64.rb | |
| parent | 1374e4ebe54912225979cd30d4bc1bb74bbb7800 (diff) | |
| download | puppet-01ec5ba96f8bf53f77974785d60ef79553488f08.tar.gz puppet-01ec5ba96f8bf53f77974785d60ef79553488f08.tar.xz puppet-01ec5ba96f8bf53f77974785d60ef79553488f08.zip | |
Moving code from external sources into an external/ directory
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2119 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/external/base64.rb')
| -rwxr-xr-x | lib/puppet/external/base64.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/puppet/external/base64.rb b/lib/puppet/external/base64.rb new file mode 100755 index 000000000..4030ad358 --- /dev/null +++ b/lib/puppet/external/base64.rb @@ -0,0 +1,19 @@ +# a stupid hack class to get rid of all of the warnings but +# still make the encode/decode methods available + +# 1.8.2 has a Base64 class, but 1.8.1 just imports the methods directly +# into Object + +require 'base64' + +unless defined? Base64 + class Base64 + def Base64.encode64(*args) + Object.method(:encode64).call(*args) + end + + def Base64.decode64(*args) + Object.method(:decode64).call(*args) + end + end +end |
