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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8df319e01d1fbdbf5adf4774cc0b3e006040a1b2e2c259c9d2063e7a290ada05
4
- data.tar.gz: bddd591348f8ced8b54ddb7bc677f9bae16b947626714f6cb498c36f5c969fa5
3
+ metadata.gz: a114138ef3d1f321f22ea3993a68f1cf8bc85f531e2243ed4369561cbb0e4d0e
4
+ data.tar.gz: 273489a6954b2213484a5b40c01ac3e9a6d1b68a4b69c2f7c925e8931c84e5a8
5
5
  SHA512:
6
- metadata.gz: 479fb43e867bc630cf7a757bbb873317232071fb1c9a5899c971fea064ee6a58565887f022a55bf9cab911ee4a3fa2339f4727fdd4c11b745565e1ca1a1878fb
7
- data.tar.gz: 611081e8085eb8fb7fd6679525b39d4614d86b8361f8f779678c940ddd9d4fa5bf0704c4d697ebbfb9b64562621b4883cfc2f2b2f545f4f035af1aa1aa467f85
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Harbr
4
- VERSION = "0.1.65"
4
+ VERSION = "0.1.66"
5
5
  end
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: ENV["RESEND_FROM"],
26
- to: ENV["RESEND_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}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harbr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.65
4
+ version: 0.1.66
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delaney Kuldvee Burke