Skip to content

Instantly share code, notes, and snippets.

@thommay
Created March 14, 2011 12:49
Show Gist options
  • Select an option

  • Save thommay/869073 to your computer and use it in GitHub Desktop.

Select an option

Save thommay/869073 to your computer and use it in GitHub Desktop.
execute "hostname --file /etc/hostname" do
action :nothing
end
file "/etc/hostname" do
content "#{new_hostname}"
notifies :run, "execute[hostname --file /etc/hostname]", :immediately
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment