Sha256: bbd11d70009e29ed70ee2aa82fb7ec3cce254601e81c29143e41303f5903ad6e

Contents?: true

Size: 832 Bytes

Versions: 4

Compression:

Stored size: 832 Bytes

Contents

# Note: The following lines *must* appear *after* `Defaults env_reset`!
# Allow gitwit to pass the following environment variables to sudo processes:
Defaults:<%= ssh_user %> env_keep += "SSH_ORIGINAL_COMMAND GEM_HOME GEM_PATH"
Defaults:<%= ssh_user %> env_keep += "BUNDLE_GEMFILE RAILS_ENV RAILS_ROOT"

# The following line is required for many linux distros, but not OS X:
<%= '# ' if mac? %>Defaults:<%= ssh_user %> secure_path="<%= git_wit_bindir %>:<%= RbConfig::CONFIG['bindir'] %>:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Allow <%= rails_user %> to run any command as <%= ssh_user %>
<%= rails_user %> ALL=(<%= ssh_user %>) NOPASSWD:ALL

# Allow <%= ssh_user %> to run *only* gw-shell as <%= rails_user %>
<%= ssh_user %> ALL=(<%= rails_user %>) NOPASSWD:<%= File.join(git_wit_bindir, "git_wit") %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
git_wit-0.0.6 lib/generators/git_wit/ssh_user/templates/sudoers.tt
git_wit-0.0.6.pre lib/generators/git_wit/ssh_user/templates/sudoers.tt
git_wit-0.0.5 lib/generators/git_wit/ssh_user/templates/sudoers.tt
git_wit-0.0.4.pre2 lib/generators/git_wit/ssh_user/templates/sudoers.tt