Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
application sub-resource providing cookbooks must have a name startin…
Browse files Browse the repository at this point in the history
…g with 'application_' - an unwritten rule embedded in the code
  • Loading branch information
zepheiryan committed Aug 16, 2014
1 parent 4460867 commit 2430c0d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
z_application_nginx Cookbook CHANGELOG
application_z_nginx Cookbook CHANGELOG
======================================
This file is used to list changes made in each version of the z_application_nginx cookbook.
This file is used to list changes made in each version of the application_z_nginx cookbook.

v3.0.2
------

- Renamed fork to application_z_nginx - surprise! application requires sub-resources to be found in cookbooks prefixed with application_.

v3.0.0
------
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
z_application_nginx Cookbook
application_z_nginx Cookbook
============================
This cookbook is designed to be able to deploy and configure an nginx reverse proxy in front of one or more application servers, which are also managed with the `application` cookbook.

Expand Down
4 changes: 2 additions & 2 deletions metadata.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name "z_application_nginx"
name "application_z_nginx"
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Deploys and configures Nginx as an application server"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "3.0.0"
version "3.0.2"

depends "application", "~> 4.0"
depends "nginx"
4 changes: 2 additions & 2 deletions providers/nginx_load_balancer.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Author:: Noah Kantrowitz <noah@opscode.com>
# Cookbook Name:: z_application_nginx
# Cookbook Name:: application_z_nginx
# Provider:: nginx_load_balancer
#
# Copyright:: 2011, Opscode, Inc <legal@opscode.com>
Expand Down Expand Up @@ -38,7 +38,7 @@

template "#{node['nginx']['dir']}/sites-available/#{new_resource.application.name}.conf" do
source new_resource.template ? new_resource.template : "load_balancer.conf.erb"
cookbook new_resource.template ? new_resource.cookbook_name.to_s : "z_application_nginx"
cookbook new_resource.template ? new_resource.cookbook_name.to_s : "application_z_nginx"
owner "root"
group "root"
mode "644"
Expand Down
2 changes: 1 addition & 1 deletion resources/nginx_load_balancer.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Author:: Noah Kantrowitz <noah@opscode.com>
# Cookbook Name:: z_application_nginx
# Cookbook Name:: application_z_nginx
# Resource:: nginx_load_balancer
#
# Copyright:: 2011, Opscode, Inc <legal@opscode.com>
Expand Down

0 comments on commit 2430c0d

Please sign in to comment.