lib/guard/rails/runner.rb in guard-rails-0.4.0 vs lib/guard/rails/runner.rb in guard-rails-0.4.1

- old
+ new

@@ -36,11 +36,11 @@ def build_command command = build_cli_command if options[:CLI] command ||= build_zeus_command if options[:zeus] command ||= build_rails_command - "sh -c 'cd #{@root} && #{command} &'" + "sh -c 'cd \"#{@root}\" && #{command} &'" end def pid_file File.expand_path(options[:pid_file] || File.join(@root, "tmp/pids/#{options[:environment]}.pid")) end @@ -59,19 +59,19 @@ def build_options rails_options = [ options[:daemon] ? '-d' : nil, options[:debugger] ? '-u' : nil, '-e', options[:environment], - '--pid', pid_file, + '--pid', "\"#{pid_file}\"", '-p', options[:port], options[:server], ] rails_options.join(' ') end def build_cli_command - "#{options[:CLI]} --pid #{pid_file}" + "#{options[:CLI]} --pid \"#{pid_file}\"" end def build_zeus_command zeus_options = [ options[:zeus_plan] || 'server',