Skip to content

Instantly share code, notes, and snippets.

@chrisroberts
Created January 18, 2013 01:02
Show Gist options
  • Save chrisroberts/4561413 to your computer and use it in GitHub Desktop.
Save chrisroberts/4561413 to your computer and use it in GitHub Desktop.
pitti = resources(:apt_repository => 'pitti-postgresql-ppa')
pitti.run_action(:add)
if(pitti.updated_by_last_action?)
execute('pitti apt-get update'){ command 'apt-get update' }.run_action(:run)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment