harbr 0.1.65 → 0.1.66
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/harbr/job.rb +0 -3
- data/lib/harbr/version.rb +1 -1
- data/lib/harbr.rb +5 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a114138ef3d1f321f22ea3993a68f1cf8bc85f531e2243ed4369561cbb0e4d0e
|
4
|
+
data.tar.gz: 273489a6954b2213484a5b40c01ac3e9a6d1b68a4b69c2f7c925e8931c84e5a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a13578468286319e1c08411cbf07eafcc03cff7f9491f1a3b7f04c1af2d2f6606ea464f0f299dc96c2f299036c4b50d2b4cbf41f9f2e6fd01016eedb0a5de4a
|
7
|
+
data.tar.gz: face4310435a69a1469b652e3b771e932ef36676bc081972a0812c24b1da8a74751fe35384c795d660ee99f0420f8eccc875d73292c255ff185990de0527fff2
|
data/lib/harbr/job.rb
CHANGED
@@ -123,9 +123,6 @@ module Harbr
|
|
123
123
|
|
124
124
|
version_path = "/var/harbr/containers/#{name}/versions/#{version}"
|
125
125
|
|
126
|
-
#system "sv stop #{env}.#{name}" if env == "next"
|
127
|
-
#system "sv stop #{name}" if env == "current"
|
128
|
-
|
129
126
|
bundle_install_if_needed(version_path)
|
130
127
|
|
131
128
|
create_runit_scripts(name, port, env)
|
data/lib/harbr/version.rb
CHANGED
data/lib/harbr.rb
CHANGED
@@ -21,15 +21,17 @@ module Harbr
|
|
21
21
|
def self.send_notification(subject, body)
|
22
22
|
Resend.api_key = ENV["RESEND_API_KEY"]
|
23
23
|
|
24
|
+
resend_config = YAML.load_file("/etc/harbr/resend.yml")
|
25
|
+
|
24
26
|
params = {
|
25
|
-
from:
|
26
|
-
to:
|
27
|
+
from: resend_config["from"],
|
28
|
+
to: resend_config["to"],
|
27
29
|
subject: subject,
|
28
30
|
html: body
|
29
31
|
}
|
30
32
|
|
31
33
|
puts "Sending notification: #{params}"
|
32
|
-
|
34
|
+
|
33
35
|
Resend::Emails.send(params)
|
34
36
|
rescue => e
|
35
37
|
puts "Error: #{e.class}"
|