Simpler rbenv rakefile

This commit is contained in:
Henrik Lissner 2014-08-21 03:29:03 -04:00
parent 3c1d4fe5e4
commit 4bb355eb9a

View file

@ -5,8 +5,6 @@ task :rbenv => 'rbenv:update'
namespace :rbenv do
GLOBAL_GEMS = %w{bundler pry rspec rake bluecloth}
task :install do
unless Rbenv.is_installed?
echo "Installing rbenv"
@ -14,22 +12,6 @@ namespace :rbenv do
end
end
task :v2_0 => "rbenv:install" do
v = "2.0.0-p451"
unless Rbenv.is_version_installed?(v)
echo "Building ruby #{v}"
Rbenv.install v, GLOBAL_GEMS
end
end
task :v1_9 => "rbenv:install" do
v = "1.9.3-p545"
unless Rbenv.is_version_installed?(v)
echo "Building ruby #{v}"
Rbenv.install v, GLOBAL_GEMS
end
end
task :remove do
if Rbenv.is_installed?
echo "rbenv isn't installed!"
@ -46,16 +28,4 @@ namespace :rbenv do
end
end
namespace :gem do
task :install, [:gem, :all_rubies] do |t, args|
end
task :remove, [:gem, :all_rubies] do |t, args|
end
end
end