Skip to content

Instantly share code, notes, and snippets.

@josephholsten
Created August 11, 2011 00:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josephholsten/1138615 to your computer and use it in GitHub Desktop.
Save josephholsten/1138615 to your computer and use it in GitHub Desktop.
Application cookbook for solo
#
# Cookbook Name:: application
# Recipe:: solo
#
app = node[:app].to_hash
(app["server_roles"] & node.run_list.roles).each do |app_role|
app["type"][app_role].each do |thing|
node.run_state[:current_app] = app
include_recipe "application::#{thing}"
end
end
node.run_state.delete(:current_app)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment