dlss-capistrano 4.1.2 → 4.3.0

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: 9d66559293449af299acd608c960a54b1b6c3a6de28eac2f64ac1eaf7843a569
4
- data.tar.gz: 75a11d2e2b0c425c387b57f84adeacafcb87e7378651bf4668bad3267a11b5d9
3
+ metadata.gz: 00db87621456c124d5e2cd1dccd996e627454bb6a3f04b76e143bb51eed21535
4
+ data.tar.gz: eae62e6b898231ec115a04ef9b4a2b2170c8d199f595f6350e97fa99b0e1f991
5
5
  SHA512:
6
- metadata.gz: 757547984fdc9d9a81880c305acdf923322a273e3ae7c7f4e0d6f071f400d89736f29b795c9bec9f98cf1d46ada1d4fa637fa4c4565340194e3b44c20d483393
7
- data.tar.gz: 4ae750a71ac9bfb199dfd3091d4e64b6ab05590e4807895ca20f1f2ccec4e9fb7260bf2c0e0bb5e33bb2ec1250efcf45df6ffc4087f69e6c3e085fb45f1dae31
6
+ metadata.gz: 5771533152ee312a8bb47034caf24ef6e9eef16801f9b7ee88764c7a93f5a5466728076024132101a2162fdc2e09f4e977417e9696bbf49e93182c5129e09294
7
+ data.tar.gz: 9c00528f43aae7b8b19d1eab7ee4586889a58f65c5c1e8f89401e3a1b68198faefcaa4a3eb1002f452583768ce119b59f529e402dcb33ced5c2ec9a4b0e5590b
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.1.2'
7
+ s.version = '4.3.0'
8
8
 
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.authors = ["Chris Beer", 'Mike Giarlo']
@@ -0,0 +1,18 @@
1
+ desc "ssh to the current directory on the server"
2
+ task :update_global_strscan do
3
+ on roles(:app) do |host|
4
+ strscan_version = within release_path do
5
+ capture(:bundle, 'exec', 'ruby', '-e', '"puts Gem::Specification.find_by_name(\'strscan\').version"', ' || true')
6
+ end
7
+
8
+ if strscan_version.empty?
9
+ warn 'strscan is not installed'
10
+ else
11
+ execute "gem install strscan --silent --no-document -v #{strscan_version}"
12
+ end
13
+ end
14
+ end
15
+
16
+ if Rake::Task.task_defined? :'passenger:restart'
17
+ before :'passenger:restart', :update_global_strscan unless ENV['SKIP_UPDATE_STRSCAN']
18
+ 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.1.2
4
+ version: 4.3.0
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-05-23 00:00:00.000000000 Z
12
+ date: 2022-06-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -95,12 +95,13 @@ files:
95
95
  - lib/dlss/capistrano/tasks/sneakers_systemd.rake
96
96
  - lib/dlss/capistrano/tasks/ssh.rake
97
97
  - lib/dlss/capistrano/tasks/ssh_check.rake
98
+ - lib/dlss/capistrano/tasks/strscan.rake
98
99
  - lib/lyberteam-capistrano-devel.rb
99
- homepage:
100
+ homepage:
100
101
  licenses:
101
102
  - Apache-2.0
102
103
  metadata: {}
103
- post_install_message:
104
+ post_install_message:
104
105
  rdoc_options: []
105
106
  require_paths:
106
107
  - lib
@@ -115,8 +116,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
116
  - !ruby/object:Gem::Version
116
117
  version: 1.3.6
117
118
  requirements: []
118
- rubygems_version: 3.2.32
119
- signing_key:
119
+ rubygems_version: 3.3.7
120
+ signing_key:
120
121
  specification_version: 4
121
122
  summary: Capistrano recipes for use in SUL/DLSS projects
122
123
  test_files: []