summaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2010-04-15 13:18:22 +1000
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commit6f8a1e9bbb48157621edb05a77a5fae96b047705 (patch)
tree183970ec14df3c69b27d220aac27cad802fdd2f9 /Rakefile
parent83a8c68f89bd47585a9acdf7ef8a95a079fc82f9 (diff)
downloadpuppet-6f8a1e9bbb48157621edb05a77a5fae96b047705.tar.gz
puppet-6f8a1e9bbb48157621edb05a77a5fae96b047705.tar.xz
puppet-6f8a1e9bbb48157621edb05a77a5fae96b047705.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 7b6983a04..515184a8c 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,15 +1,17 @@
# 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'
require 'spec'
require 'spec/rake/spectask'
+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[