summaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2010-04-15 13:18:22 +1000
committerJames Turnbull <james@lovedthanlost.net>2010-04-16 14:58:33 +1000
commitcf7e6967632ba3f1d3b7ae21ccaf5daed9cec6e7 (patch)
tree9a62c3e4c9eefef9f2398915434a218ea1dc6fe4 /Rakefile
parentb93924e1f4ae55565d96701f55ec49ff16379ef0 (diff)
downloadpuppet-cf7e6967632ba3f1d3b7ae21ccaf5daed9cec6e7.tar.gz
puppet-cf7e6967632ba3f1d3b7ae21ccaf5daed9cec6e7.tar.xz
puppet-cf7e6967632ba3f1d3b7ae21ccaf5daed9cec6e7.zip
Updated Rake tasks to no longer load puppet.rb
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 6f2ff592a..416bafbc4 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,13 +1,15 @@
# Rakefile for Puppet -*- ruby -*-
-$: << File.expand_path('lib')
$LOAD_PATH << File.join(File.dirname(__FILE__), 'tasks')
-require 'puppet.rb'
require 'rake'
require 'rake/packagetask'
require 'rake/gempackagetask'
+module Puppet
+ PUPPETVERSION = File.read('lib/puppet.rb')[/PUPPETVERSION *= *'(.*)'/,1] or fail "Couldn't find PUPPETVERSION"
+end
+
Dir['tasks/**/*.rake'].each { |t| load t }
FILES = FileList[