dlss-capistrano 4.2.0 → 4.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 901bfd4d7fc52ef598ccc895d59ab656abc1db5948f9b5284f4bc8ec1207ffcc
4
- data.tar.gz: be31f24d058ecd802089e529bcfe1b9b5fde124dd97076ab83b10e6304281d19
3
+ metadata.gz: 9a9175c3b24ed9d85b9acd276d6ada0977e6a018a44c74a5947f8bb0dc37e5af
4
+ data.tar.gz: 8df556cff57ab8e63f858670774c31c52796091c56f67317efadc5d9b1bb089a
5
5
  SHA512:
6
- metadata.gz: 7bd2d019fe195682620b150ebe4b1254496121634a3bff59371cdc078f4b15342853205c925cbf8b2b5a7a968dd935f9c3c567ca3064b0a5d436f93fa41fd241
7
- data.tar.gz: 55647ad42dee03eab7cc98f334892d78f312b4cfb9fb9ca1576816b46970535738f9abd1380ae71174c317275771e38c09b21c484e96385e260dbe66856f290c
6
+ metadata.gz: 65e48931177dd8b4ce95eb2fd89af85823f0d0bfc950b1ba1c15a0c1006ca0cf71cf26f2da8631058cc3880859412abbe860c2de55d66adfd3779a6fc7126bae
7
+ data.tar.gz: 839b7dc8125c931470d1fe8a3409992694960b1deb143b0ea6f81a69a6fbf57e3b69d73b3e58460956033ead129ce788abefe3ef03535a7c5d1e748cadcfd24b
data/README.md CHANGED
@@ -45,6 +45,12 @@ set :check_status_roles, [:my_status_check_web_role]
45
45
  set :check_status_path, '/my/status/check/endpoint'
46
46
  ```
47
47
 
48
+ ### Update global strscan gem
49
+
50
+ This insures the global version of strscan matches the version specified in the bundle.
51
+
52
+ To skip this step provide `SKIP_UPDATE_STRSCAN=1`
53
+
48
54
  ### SSH
49
55
 
50
56
  `cap ENV ssh` establishes an SSH connection to the host running in `ENV` environment, and changes into the current deployment directory
@@ -4,7 +4,7 @@ $:.unshift lib unless $:.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "dlss-capistrano"
7
- s.version = '4.2.0'
7
+ s.version = '4.3.1'
8
8
 
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.authors = ["Chris Beer", 'Mike Giarlo']
@@ -1,12 +1,22 @@
1
- desc "ssh to the current directory on the server"
1
+ desc "update the strscan default gem"
2
2
  task :update_global_strscan do
3
3
  on roles(:app) do |host|
4
4
  strscan_version = within release_path do
5
- capture(:bundle, 'exec', 'ruby', '-e', '"puts Gem::Specification.find_by_name(\'strscan\').version"')
5
+ capture(:bundle, 'exec', 'ruby', '-e', '"puts Gem::Specification.find_by_name(\'strscan\').version"', ' || true')
6
+ end
7
+
8
+ next warn 'strscan is not installed' if strscan_version.empty?
9
+
10
+ begin
11
+ Gem::Version.new(strscan_version)
12
+ rescue ArgumentError
13
+ next warn "skipping, could not install strscan due to an unrelated error: #{strscan_version}"
6
14
  end
7
15
 
8
16
  execute "gem install strscan --silent --no-document -v #{strscan_version}"
9
17
  end
10
18
  end
11
19
 
12
- before :'passenger:restart', :update_global_strscan
20
+ if Rake::Task.task_defined?(:'passenger:restart')
21
+ before :'passenger:restart', :update_global_strscan unless ENV['SKIP_UPDATE_STRSCAN']
22
+ end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dlss-capistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 4.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
8
8
  - Mike Giarlo
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-06-23 00:00:00.000000000 Z
12
+ date: 2022-07-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -97,11 +97,11 @@ files:
97
97
  - lib/dlss/capistrano/tasks/ssh_check.rake
98
98
  - lib/dlss/capistrano/tasks/strscan.rake
99
99
  - lib/lyberteam-capistrano-devel.rb
100
- homepage:
100
+ homepage:
101
101
  licenses:
102
102
  - Apache-2.0
103
103
  metadata: {}
104
- post_install_message:
104
+ post_install_message:
105
105
  rdoc_options: []
106
106
  require_paths:
107
107
  - lib
@@ -116,8 +116,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  - !ruby/object:Gem::Version
117
117
  version: 1.3.6
118
118
  requirements: []
119
- rubygems_version: 3.3.7
120
- signing_key:
119
+ rubygems_version: 3.2.32
120
+ signing_key:
121
121
  specification_version: 4
122
122
  summary: Capistrano recipes for use in SUL/DLSS projects
123
123
  test_files: []