06 Feb 2013, 19:19
Leo-1_pragsmall

Leonel Santos (11 posts)

Can someone explain this?

if ENV['NO_RUN']
  def system(cmd)
    puts cmd
    true
  end
end
if false
system(command)
end

It’s not explained in the book. Lots of sections in the downloaded files differ greatly from the book, like the «-EOS heredoc

08 Feb 2013, 19:34
Dmfcb_pragsmall

David Copeland (98 posts)

I wouldn’t dig too deeply into the code that isn’t pulled into the book - this is here to allow me to test some of the code without actually running @mysqldump@. Testing techniques like this will be covered in chapter 8 and will involve more readable code, I promise :)

  You must be logged in to comment