puma-redeploy 0.3.4 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/puma/plugin/redeploy.rb +2 -8
- data/lib/puma/redeploy/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: d6edbb8fa181e9de57382d871f38d81d2a905cd24a138dd2479f5f4b09a39e04
|
4
|
+
data.tar.gz: b39412cc34c1c7c417e73d4b6c938022c187f4d623d8efd45e2c8c066246eee9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0523cf96ee296d6e3ca47795f56c5d7de9f513741141d6d8d3447dca2b6323924b17ad437a64536e20ded566dc5948100a7bf1f4e1291ad307b56953d31f47dc
|
7
|
+
data.tar.gz: 3ede12f21e140f29d69abe27e4b1bfe16394a8c4aa585cbe0722c8a857a41043e52c3fb431cc2b21711562de28ad2b5267f80a9f4f7d6cb9fba76f19a71dda7a
|
data/CHANGELOG.md
CHANGED
data/lib/puma/plugin/redeploy.rb
CHANGED
@@ -1,11 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'puma-redeploy'
|
4
|
-
# require 'puma/plugin'
|
5
|
-
# require 'puma/redeploy/dsl'
|
6
|
-
# require 'puma/redeploy/file_handler'
|
7
|
-
# require 'puma/redeploy/file_deployer'
|
8
|
-
# require 'puma/redeploy/deployer_factory'
|
9
4
|
require 'logger'
|
10
5
|
|
11
6
|
Puma::Plugin.create do
|
@@ -28,15 +23,14 @@ def monitor_loop(handler, delay, launcher, logger)
|
|
28
23
|
next unless handler.needs_redeploy?
|
29
24
|
|
30
25
|
watch_file_data = handler.watch_file_data
|
31
|
-
|
32
26
|
archive_file = handler.archive_file(watch_file_data[:archive_location])
|
33
27
|
|
34
28
|
logger.info "Puma phased_restart begin file=#{handler.watch_file} archive=#{archive_file}"
|
35
29
|
|
36
|
-
Puma::Redeploy::CommandRunner.new(commands: watch_file_data[:commands], logger:).run
|
37
|
-
|
38
30
|
handler.deploy(source: archive_file)
|
39
31
|
|
32
|
+
Puma::Redeploy::CommandRunner.new(commands: watch_file_data[:commands], logger:).run
|
33
|
+
|
40
34
|
launcher.phased_restart
|
41
35
|
end
|
42
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puma-redeploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tbeauvais
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-s3
|