Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
Updated gems Rakefile's for CI.
Browse files Browse the repository at this point in the history
* Changed 'install' task to use sudo unless the
  SUDOLESS environmental variable is set.
* Updated merb_datamapper 'spec' task to look for
  specs in the 'spec' folder.
  • Loading branch information
benburkert committed Apr 28, 2008
1 parent 5f0df34 commit 2a43c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Rake::GemPackageTask.new(spec) do |pkg|
end

task :install => [:package] do
sh %{sudo gem install pkg/#{NAME}-#{VERSION} --no-update-sources}
sh %{#{'sudo' unless ENV['SUDOLESS']} gem install pkg/#{NAME}-#{VERSION} --no-update-sources}
end

desc "Run specifications"
Expand Down

0 comments on commit 2a43c16

Please sign in to comment.