summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2013-12-03 17:53:38 -0800
committerJohn Keiser <jkeiser@opscode.com>2013-12-03 17:53:38 -0800
commitca82312b196cdb195e134f63e1725269f890448d (patch)
treef9213e533c1f7c0e68f4df1eba872e8240a11b37 /Rakefile
parent83e161811cbe483759790d737229efbca2f93021 (diff)
downloadmixlib-cli-ca82312b196cdb195e134f63e1725269f890448d.tar.gz
Add Travis and Bundler support
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile27
1 files changed, 4 insertions, 23 deletions
diff --git a/Rakefile b/Rakefile
index acc25d5..b6b1f55 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,7 +1,10 @@
+require 'bundler'
require 'rubygems'
require 'rubygems/package_task'
-require 'rspec/core/rake_task'
require 'rdoc/task'
+require 'rspec/core/rake_task'
+
+Bundler::GemHelper.install_tasks
task :default => :spec
@@ -12,31 +15,9 @@ end
gem_spec = eval(File.read("mixlib-cli.gemspec"))
-Gem::PackageTask.new(gem_spec) do |pkg|
- pkg.gem_spec = gem_spec
-end
-
-desc "install the gem locally"
-task :install => [:package] do
- sh %{gem install pkg/#{gem_spec.name}-#{gem_spec.version}}
-end
-
-desc "create a gemspec file"
-task :make_spec do
- File.open("#{gem_spec.name}.gemspec", "w") do |file|
- file.puts spec.to_ruby
- end
-end
-
-desc "remove build files"
-task :clean do
- sh %Q{ rm -f pkg/*.gem }
-end
-
RDoc::Task.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "mixlib-cli #{gem_spec.version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
-