summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorDaniel DeLeo <dan@opscode.com>2011-12-01 11:57:54 -0800
committerDaniel DeLeo <dan@opscode.com>2011-12-01 11:57:54 -0800
commit542387d2374ca3e23b070972828e43901a4056b6 (patch)
tree7131d81bfdf0d6eaf6b4ce9ce466d286ff57fe8a /Rakefile
parent1f7734e92f30c0b6545bcc8b537e920e3f12b6bc (diff)
downloadmixlib-shellout-542387d2374ca3e23b070972828e43901a4056b6.tar.gz
cleanup Rakefile and add gem pkg task
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 1fb8520..93c73e3 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,10 +1,12 @@
require 'rspec/core/rake_task'
+require 'rubygems/package_task'
-ROOT = File.expand_path(File.dirname(__FILE__))
+gemspec = eval(IO.read('mixlib-shellout.gemspec'))
+Gem::PackageTask.new(gemspec).define
desc "Run all specs in spec directory"
RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = FileList['spec/**/*_spec.rb']
end
-task :default => :spec \ No newline at end of file
+task :default => :spec