Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow disabling use of sudo with SUDO='' when running the rake instal…

…l/uninstall tasks (Fixes #433)
  • Loading branch information...
commit 824515b45d04e097cb4588879d8734c6deb30c6c 1 parent 4472771
@jeremyevans authored
Showing with 7 additions and 2 deletions.
  1. +4 −0 CHANGELOG
  2. +3 −2 Rakefile
View
4 CHANGELOG
@@ -1,3 +1,7 @@
+=== HEAD
+
+* Allow disabling use of sudo with SUDO='' when running the rake install/uninstall tasks (jeremyevans) (#433)
+
=== 3.32.0 (2012-02-01)
* Make serialization_modification_detection plugin work correctly with new objects and after saving existing objects (jeremyevans) (#432)
View
5 Rakefile
@@ -7,6 +7,7 @@ VERS = lambda do
Sequel.version
end
CLEAN.include ["**/.*.sw?", "sequel-*.gem", ".config", "rdoc", "coverage", "www/public/*.html", "www/public/rdoc*", '**/*.rbc']
+SUDO = ENV['SUDO'] || 'sudo'
# Gem Packaging and Release
@@ -18,12 +19,12 @@ end
desc "Install sequel gem"
task :install=>[:package] do
- sh %{sudo gem install ./#{NAME}-#{VERS.call} --local}
+ sh %{#{SUDO} gem install ./#{NAME}-#{VERS.call} --local}
end
desc "Uninstall sequel gem"
task :uninstall=>[:clean] do
- sh %{sudo gem uninstall #{NAME}}
+ sh %{#{SUDO} gem uninstall #{NAME}}
end
desc "Upload sequel gem to gemcutter"
Please sign in to comment.
Something went wrong with that request. Please try again.