Browse Source

Merge pull request #23 from Youscribe/addRoot

[COOK-2395] Add a root path (default to /)
Joshua Timberman 11 years ago
parent
commit
40079b26d8
2 changed files with 3 additions and 0 deletions
  1. 2 0
      README.md
  2. 1 0
      resources/default.rb

+ 2 - 0
README.md

@@ -70,6 +70,8 @@ more documentation.
   starting the deployment
 - `path`: target path of the deployment; it will be created if it does
   not exist
+- `app_root`: path where the application can be found in relative from
+  path. Default value is "/".
 - `owner`: the user that shall own the target path
 - `group`: the group that shall own the target path
 - `strategy`: the underlying LWRP that will be used to perform the

+ 1 - 0
resources/default.rb

@@ -33,6 +33,7 @@ actions :deploy, :force_deploy
 attribute :name, :kind_of => String, :name_attribute => true
 attribute :environment_name, :kind_of => String, :default => (node.chef_environment =~ /_default/ ? "production" : node.chef_environment)
 attribute :path, :kind_of => String
+attribute :app_root, :kind_of => String, :default => "/"
 attribute :owner, :kind_of => String
 attribute :group, :kind_of => String
 attribute :strategy, :kind_of => [String, Symbol], :default => :deploy_revision