ndr_dev_support 6.1.5 → 6.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/ndr_dev_support/capistrano/ndr_model.rb +9 -2
- data/lib/ndr_dev_support/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64a3efbb44c782bd62b06b12a1ccf5a8390173b7cff796141f044df5c79bf6a6
|
4
|
+
data.tar.gz: 7ebfe41c07779cb4a90ad956359827f277bae624a254204b3460a99fa361b37f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ecc17440ed412719ea08f742c3c853401ebf06ba8ab1ec82eb143395f81ed0206ad857e300fbbb284441c248349364db12110a22511401887c007a15491800d
|
7
|
+
data.tar.gz: 2e4c6023991fe8a7bdb685fce3d21eef9aa9baf89b2c491a51a5fbe65d586bf1471103ff0d57212b4fc9f8a51809138f17a482aca3f15c961aa8dd227b215838
|
data/CHANGELOG.md
CHANGED
@@ -30,6 +30,8 @@ require_relative 'sysadmin_scripts'
|
|
30
30
|
# and SVN branches. To use the latter, be sure to set the `:repository_branches` variable
|
31
31
|
# to point at the root of the branches. Otherwise, just set `:repository` directly as normal.
|
32
32
|
#
|
33
|
+
# Set environment variable DEPLOYER to deploy as a particular user instead of prompting.
|
34
|
+
#
|
33
35
|
Capistrano::Configuration.instance(:must_exist).load do
|
34
36
|
# Paths that are symlinked for each release to the "shared" directory:
|
35
37
|
set :shared_paths, %w[config/database.yml config/secrets.yml log tmp]
|
@@ -94,9 +96,14 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
94
96
|
|
95
97
|
# Gather SSH credentials: (password is asked for by Net::SSH, if needed)
|
96
98
|
set :use_sudo, false
|
97
|
-
|
99
|
+
if ENV['DEPLOYER']
|
100
|
+
set :user, ENV['DEPLOYER']
|
101
|
+
Capistrano::CLI.ui.say "Deploy as: #{fetch(:user)}"
|
102
|
+
else
|
103
|
+
set :user, Capistrano::CLI.ui.ask('Deploy as: ')
|
104
|
+
end
|
98
105
|
|
99
|
-
# If no alternate user is specified, deploy to the
|
106
|
+
# If no alternate user is specified, deploy to the credential-holding user.
|
100
107
|
set :application_user, fetch(:user) unless fetch(:application_user)
|
101
108
|
|
102
109
|
# The home folder of the application user:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ndr_dev_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.1.
|
4
|
+
version: 6.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- NCRS Development Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|