Skip to content

Instantly share code, notes, and snippets.

@drbraden
Created October 23, 2014 19:05
Show Gist options
  • Save drbraden/ec94c02b7a2010359a63 to your computer and use it in GitHub Desktop.
Save drbraden/ec94c02b7a2010359a63 to your computer and use it in GitHub Desktop.
Using Capistrano to deploy files to directory not owned by user
template = ERB.new(File.read('templates/UI/httpd.conf.erb'))
result = template.result(binding)
put(result, "/etc/httpd/httpd.conf")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment