title: Keeping files updated with a Chef recipe
body: <p><img src="https://snag.gy/o4R2bY.jpg" alt="challenge prompt"></p>
  
  <p>The challenge prompt is above, and my latest attempt is below. The directories and files are created as expected, and the read-out after executing <code>chef-apply multipleCopies.rb</code> tells me the files are linked, but when I update any one of the files, the others do not follow suit. Any ideas? Here is my code:</p>
  
  <pre><code>for x in 1..3
      directory "multipleCopy#{x}" do
          mode '0755'
          action :create
      end
  end
  file "multipleCopy1/secret.txt" do
          mode '0755'
          action :create
  end
  for x in 2..3
      link "multipleCopy#{x}/secret.txt" do
          to "multipleCopy1/secret.txt"
          link_type :hard
          subscribes :reload, "multipleCopy1/secret.txt", :immediately
      end
  end
  </code></pre>
  
  <p>Note: For less headache, I am testing the recipe locally before uploading to the <code>ubuntu</code> server referenced in the prompt, which is why my file paths are different and why I have not yet included the ownership properties.</p>