diff options
author | Christoph Helma <helma@in-silico.de> | 2009-11-17 13:49:00 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2009-11-17 13:49:00 +0100 |
commit | c796b25c1a70217a7f542bda4a7a51efb66f5b86 (patch) | |
tree | bafd702bcd34145bdbda37f745e2ff14e7a43ee4 /lib | |
parent | 9dadb01e2f973f1f33415e79eaddfd408fa5ae8f (diff) |
Passenger (re)start fixed
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/opentox.rb | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/lib/tasks/opentox.rb b/lib/tasks/opentox.rb index 8018fff..38202dd 100644 --- a/lib/tasks/opentox.rb +++ b/lib/tasks/opentox.rb @@ -22,16 +22,6 @@ end namespace :opentox do - desc "Install required gems" - task :install do - puts `sudo gem install #{@gems}` - end - - desc "Update gems" - task :update do - puts `sudo gem update #{@gems}` - end - namespace :services do desc "Run opentox services" @@ -51,7 +41,8 @@ namespace :opentox do puts "Cannot start #{service} on port #{port}." end when 'passenger' - `touch #{File.join(dir, 'tmp/restart.txt')}` + FileUtils.mkdir_p File.join(dir, 'tmp') + FileUtils.touch File.join(dir, 'tmp/restart.txt') puts "#{service} restarted." else puts "not yet implemented" @@ -108,7 +99,8 @@ task :start do puts "Cannot start #{service} on port #{port}." end when 'passenger' - `touch tmp/restart.txt` + FileUtils.mkdir_p File.join(dir, 'tmp') + FileUtils.touch File.join(dir, 'tmp/restart.txt') puts "#{service} restarted." else puts "not yet implemented" |