Skip to content

Instantly share code, notes, and snippets.

@simplytunde
Last active August 2, 2016 15:14
Show Gist options
  • Save simplytunde/0c4c52d6adf86625473080e78497ee5e to your computer and use it in GitHub Desktop.
Save simplytunde/0c4c52d6adf86625473080e78497ee5e to your computer and use it in GitHub Desktop.
Chef How To: Update Remote File
remote_file '/Users/tunde.oladipupo/Documents/0617/learn-chef/downloaded.py' do
  source "https://raw.githubusercontent.com/pixelb/ps_mem/master/ps_mem.py"
  owner "tunde"
  mode "755"
  not_if {File.exists?("/Users/tunde.oladipupo/Documents/0617/learn-chef/downloaded.py")} #could have used :create_if_missing instead
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment