spec/mri/spring_support.rb
# Spring seems goofy unless we use File I/O
Spring seems goofy unless we use File I/O
Spring seems goofy unless we use File I / O
def run_stuff(command)
    file = Tempfile.new 'spring_test'
    file.close
    begin
      env_flat = env_vars.map { |k, v| "#{k}='#{v}'" }.join ' '
      redir = "#{env_flat} #{command} 1> #{file.path} 2>&1"
      success = Bundler.clean_system redir
      output = File.read(file.path)
      raise "'#{command}' failed with output\n#{output.strip}" unless success
      output
    ensure
      file.unlink
    end
  end
def run_stuff ( command ) file = Tempfile . new 'spring_test' file . close begin env_flat = env_vars . map { | k , v | "#{k}='#{v}'" } . join ' ' redir = "#{env_flat} #{command} 1> #{file.path} 2>&1" success = Bundler . clean_system redir output = File . read ( file . path ) raise "'#{command}' failed with output\n#{output.strip}" unless success output ensure file . unlink end end
Spring seems goofy unless we use File I/O
Spring seems goofy unless we use File I / O
command
<not_specific>