-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Honestly I can't see the point in writing sudo in a Rakefile either: tmacedo@bolos ~ $ uname -a Linux bolos 2.6.23-gentoo-r3 #3 SMP Thu Dec 6 17:20:18 WET 2007 i686 Intel(R) Pentium(R) M processor 1.20GHz GenuineIntel GNU/Linux tmacedo@bolos ~ $ sudo - -bash: sudo: command not found tmacedo@bolos ~ $ Tiago Macedo Albert Schlef wrote: | Luis Lavena wrote: |> Take as example the following gem install rake tasks (from |> DataMapper and Merb dev): |> |> namespace :gems do |> desc 'Uninstall all RubyGems for this project' |> task :wipe do |> sudo = RUBY_PLATFORM =~ /win32|cygwin/ ? '' : 'sudo' |> sh "#{sudo} gem uninstall #{project} --all --ignore-dependencies |> --executables; true" |> end |> end |> |> |> What about remove sudo from there and leave up to the user |> to make that decision? | | IMO you're right. (When I used Fedora I didn't have 'sudo' at all.) | | How to gain root priviledge is the user's own business. I may install | Ruby in my home directory, where I have write access to everything. | Putting 'sudo' thingies in Makefiles seems very wrong to me. Everybody | knows that when you install a unix program you do 'sudo make install' or | 'su -c "make install"' *yourself*. It's *not* in the Makefile. | | It might be that these programmers originated form the Windows culture. | Maybe they believe most of their users too are Linux novices, that don't | know about 'permissions', so they foolishly do 'sudo' for them. | -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkgrekcACgkQxFuRTtCTMvLiDQCeOO5V0ItpgSbszQX8cNPp06al 8DMAmQHxlxyQgfrMmBGdVAyTdUP9FAdX =ccpW -----END PGP SIGNATURE-----