1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Merge pull request #1895 from rbq/1893-local_user

Add :local_user setting to config and docs
This commit is contained in:
Matt Brictson 2017-06-08 10:56:17 -07:00 committed by GitHub
commit 46534f0b62
2 changed files with 6 additions and 3 deletions

View file

@ -42,9 +42,9 @@ repository the content will be a raw git repository (e.g. objects, refs,
etc.).
* `revisions.log` is used to log every deploy or rollback. Each entry is
timestamped and the executing user (username from local machine) is listed.
Depending on your VCS data like branchnames or revision numbers are listed as
well.
timestamped and the executing user (`:local_user`, defaulting to the local
username) is listed. Depending on your VCS data like branch names or revision
numbers are listed as well.
* `shared` contains the `linked_files` and `linked_dirs` which are symlinked
into each release. This data persists across deployments and releases. It

View file

@ -29,5 +29,8 @@ set :repo_url, "git@example.com:me/my_repo.git"
# Default value for default_env is {}
# set :default_env, { path: "/opt/ruby/bin:$PATH" }
# Default value for local_user is ENV['USER']
# set :local_user, -> { `git config user.name`.chomp }
# Default value for keep_releases is 5
# set :keep_releases, 5