harbr 0.1.65 → 0.1.67
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 +6 -4
- 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: 60d48a9e80278ddc75e9b10ad5e431f6b20dbf6acae384fbf734d6093c8a76b2
|
4
|
+
data.tar.gz: d74b33b39ea5934575465e848e3887ff7cd5c4fac63aab3c8e405147a1f787c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d74fab9e735d7e861e5bb3b1a1b2588d32723475a9fd77dcd5aa6355bec81b5d925457ad836132203d86beddf3af7fdc5ae2cd7de2df421425edba79678669fe
|
7
|
+
data.tar.gz: 8cf81557c35cbaaf34a2e40516b376adb9c507e381b6492854e9b25a26e22d7a0840403dd510824a92f8b253aa379a55d7f4639aab72b129b7c43d65f48e297d
|
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
@@ -19,17 +19,19 @@ module Harbr
|
|
19
19
|
class Error < StandardError; end
|
20
20
|
|
21
21
|
def self.send_notification(subject, body)
|
22
|
-
|
22
|
+
resend_config = YAML.load_file("/etc/harbr/resend.yml")
|
23
23
|
|
24
|
+
Resend.api_key = ENV["key"]
|
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}"
|