lib/daemon_kit/tasks/environment.rake in daemon-kit-0.1.7 vs lib/daemon_kit/tasks/environment.rake in daemon-kit-0.1.7.4
- old
+ new
@@ -1,9 +1,10 @@
task :environment do
- # This relies on the fact that rake changes the currect working
- # directory to the directory where the Rakefile is located, thus
- # implying DAEMON_ROOT.
- DAEMON_ROOT = '.'
$daemon_kit_rake_task = true
require 'config/environment'
+end
+
+task "Execute system commands in other tasks with sudo"
+task :sudo do
+ $RAKE_USE_SUDO = true
end