Skip to content

Instantly share code, notes, and snippets.

@Aslan
Created June 24, 2010 02:38
Show Gist options
  • Save Aslan/450896 to your computer and use it in GitHub Desktop.
Save Aslan/450896 to your computer and use it in GitHub Desktop.
# 1
execute "apt-get-update" do
command "apt-get update"
end
##############################
# 2
e = execute "apt-get-update" do
command "apt-get update"
action :run
end
e.run_action(:run)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment