small medium large xlarge

Leo-1_pragsmall
06 Feb 2013, 19:19
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

Dmfcb_pragsmall
08 Feb 2013, 19:34
David Copeland (136 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