puma-redeploy 0.3.4 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/lib/puma/plugin/redeploy.rb +2 -8
- data/lib/puma/redeploy/base_handler.rb +2 -0
- data/lib/puma/redeploy/file_handler.rb +1 -0
- data/lib/puma/redeploy/s3_handler.rb +1 -0
- 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: e169bb626da9c5e902dcab601274ff12463346bfb8eea5efc7bafa2950e96cac
|
|
4
|
+
data.tar.gz: 6a15c8d7a7f403ab49b633f5ce9d96dd23e61eb1f1d3327ccee2241097e60578
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 34992846409fff5f842402b533de687ac523defaef84c687257d6894cd24ec80727181f23ca82fd96f34d5823b4f41049c32be0ee74a0bbb8b2c716b4b277b40
|
|
7
|
+
data.tar.gz: 66f1bf3e0cb9a754bb7e8e5fe3e11f6aee146df3ab725385260b1a08e59dc6f9b74ff3feb266418a712c7e71b79f83a3b61d8bd8a574f5b1b017ff00ae959519
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.4.1
|
|
4
|
+
|
|
5
|
+
**Fixes:**
|
|
6
|
+
|
|
7
|
+
- Fix issue when watch file is initially missing
|
|
8
|
+
|
|
9
|
+
## v0.4.0
|
|
10
|
+
|
|
11
|
+
**Fixes and enhancements:**
|
|
12
|
+
|
|
13
|
+
- Fix the order when running commands to run after unzip archive. Also bump to 0.4.0
|
|
14
|
+
|
|
15
|
+
|
|
3
16
|
## v0.3.4
|
|
4
17
|
|
|
5
18
|
**Features:**
|
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.1
|
|
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-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-s3
|