anchor.diff:    code <<-EOF
     unzip refcalc.zip
     cd refcalc; make
  -  start_scoring_server &
  +  echo "start_scoring_server" >> /usr/bin/attacking_server_reboot
  +  start_scoring_server
  +  scoring_loop &
     touch /tmp/calc_in_out
     touch /tmp/test-file
     EOF
  
positive.code:   interpreter "bash"
    cwd "/etc/update-motd.d"
    code <<-EOH
    echo "start_defense_server &" >> /usr/bin/defending_server_reboot
    start_defense_server &
    rm 10* 50* 51* 90* 91* 98*
    touch /tmp/test-file
  
negative.code:   content "<%= scenario.answers_url %>"
  end
  
  remote_file "scoring_loop" do
    source "https://raw.githubusercontent.com/clampz/fuzzy_challenge/master/src/scoring_loop"
    path "/usr/bin/scoring_loop"
    mode "0765"
    not_if "test -e /tmp/test-file"
  end
  
  remote_file "scoring_server_reboot" do
    source "https://raw.githubusercontent.com/clampz/fuzzy_challenge/master/src/nc_server_reboot"
    path "/usr/bin/scoring_server_reboot"
  