Skip to content

Instantly share code, notes, and snippets.

@Zhann
Last active December 14, 2015 12:48
Show Gist options
  • Save Zhann/5088994 to your computer and use it in GitHub Desktop.
Save Zhann/5088994 to your computer and use it in GitHub Desktop.
action :create do
vhost :create
vhost_link_to_enabled :create
logdir :create
end
action :modify do
#...
end
action somethingcrazy do
#...
end
action :remove do
vhost_link_to_enabled :delete
logdir :delete
end
def vhost(exec_action)
r = template "foo" do
bar x
bar2 y
action :delete
end
r.run_action(exec_action) if r
end
def vhost_link_to_enabled(exec_action)
#...
end
def logdir(exec_action)
#...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment