summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorMatt Wrock <matt@mattwrock.com>2016-02-03 11:24:18 -0800
committerMatt Wrock <matt@mattwrock.com>2016-02-03 11:24:18 -0800
commit2a928dc90306fa8c21e534a774816d14656749b8 (patch)
tree87e48bae7da001a23a0645d05ba35f8d592431f6 /Rakefile
parentb892ec418ffe63c4bdd6f84c61fd016c65e09e68 (diff)
downloadmixlib-shellout-2a928dc90306fa8c21e534a774816d14656749b8.tar.gz
use gem helper tasks to get rake releaserakefile
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile17
1 files changed, 2 insertions, 15 deletions
diff --git a/Rakefile b/Rakefile
index 754ba4d..e4c694e 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,24 +1,11 @@
+require 'bundler'
require 'rspec/core/rake_task'
-require 'rubygems/package_task'
-require 'mixlib/shellout/version'
-Dir[File.expand_path("../*gemspec", __FILE__)].reverse.each do |gemspec_path|
- gemspec = eval(IO.read(gemspec_path))
- Gem::PackageTask.new(gemspec).define
-end
+Bundler::GemHelper.install_tasks
desc "Run all specs in spec directory"
RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = FileList['spec/**/*_spec.rb']
end
-desc "Build it and ship it"
-task ship: [:clobber_package, :gem] do
- sh("git tag #{Mixlib::ShellOut::VERSION}")
- sh("git push opscode --tags")
- Dir[File.expand_path("../pkg/*.gem", __FILE__)].reverse.each do |built_gem|
- sh("gem push #{built_gem}")
- end
-end
-
task default: :spec