Browse Source

COOK-323, create deploy's shared/system dir

jtimberman 14 years ago
parent
commit
8e4724b10d
3 changed files with 20 additions and 23 deletions
  1. 11 11
      metadata.json
  2. 1 1
      metadata.rb
  3. 8 11
      recipes/rails.rb

File diff suppressed because it is too large
+ 11 - 11
metadata.json


+ 1 - 1
metadata.rb

@@ -3,7 +3,7 @@ maintainer_email "cookbooks@opscode.com"
 license          "Apache 2.0"
 description      "Deploys and configures a variety of applications defined from databag 'apps'"
 long_description  IO.read(File.join(File.dirname(__FILE__), 'README.md'))
-version          "0.6.1"
+version          "0.6.2"
 recipe           "application", "Loads application databags and selects recipes to use"
 recipe           "application::passenger-nginx", "Installs Ruby Enterprise with Passenger under Nginx"
 recipe           "application::passenger_apache2", "Sets up a deployed Rails application as a Passenger virtual host in Apache2"

+ 8 - 11
recipes/rails.rb

@@ -73,18 +73,15 @@ directory "#{app['deploy_to']}/shared" do
   recursive true
 end
 
-directory "#{app['deploy_to']}/shared/log" do
-  owner app['owner']
-  group app['group']
-  mode '0755'
-  recursive true
-end
+%w{ log pids system }.each do |dir|
+
+  directory "#{app['deploy_to']}/shared/#{dir}" do
+    owner app['owner']
+    group app['group']
+    mode '0755'
+    recursive true
+  end
 
-directory "#{app['deploy_to']}/shared/pids" do
-  owner app['owner']
-  group app['group']
-  mode '0755'
-  recursive true
 end
 
 if app.has_key?("deploy_key")

Some files were not shown because too many files changed in this diff