lib/rhoconnect/utilities.rb in rhoconnect-3.2.0.beta3 vs lib/rhoconnect/utilities.rb in rhoconnect-3.2.0.beta4
- old
+ new
@@ -2,11 +2,11 @@
module Utilities
# Prints the command to be issued and then issues it to system
def cmd(cmd)
puts cmd
- system cmd
+ system "#{cmd}"
end #cmd
def redis_home
ENV['REDIS_HOME'] || File.join($redis_dest,$redis_ver)
end
@@ -80,20 +80,20 @@
end
def thin?
begin
require 'thin'
- 'rackup -s thin'
+ 'bundle exec rackup -s thin'
rescue LoadError
nil
end
end
def mongrel?
begin
require 'mongrel'
- 'rackup -s mongrel'
+ 'bundle exec rackup -s mongrel'
rescue LoadError
nil
end
end
@@ -111,8 +111,8 @@
# def jetty_rackup?
# 'jruby -S jetty-rackup'
# end
def trinidad?
- 'jruby -S trinidad -p 9292 -r config.ru'
+ 'bundle exec jruby -S trinidad -p 9292 -r config.ru'
end
end #Utilities
\ No newline at end of file