anchor.diff:    interpreter "bash"
     cwd "/etc/update-motd.d"
     code <<-EOH
  -  echo "start_defense_server &" >> /usr/bin/defending_server_reboot
  +  echo "start_defense_server" >> /usr/bin/defending_server_reboot
     start_defense_server &
     rm 10* 50* 51* 90* 91* 98*
     touch /tmp/test-file
  
positive.code:   code <<-EOF
    unzip refcalc.zip
    cd refcalc; make
    start_scoring_server &
    touch /tmp/calc_in_out
    touch /tmp/test-file
    EOF
  
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"
  