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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8df319e01d1fbdbf5adf4774cc0b3e006040a1b2e2c259c9d2063e7a290ada05
4
- data.tar.gz: bddd591348f8ced8b54ddb7bc677f9bae16b947626714f6cb498c36f5c969fa5
3
+ metadata.gz: 60d48a9e80278ddc75e9b10ad5e431f6b20dbf6acae384fbf734d6093c8a76b2
4
+ data.tar.gz: d74b33b39ea5934575465e848e3887ff7cd5c4fac63aab3c8e405147a1f787c8
5
5
  SHA512:
6
- metadata.gz: 479fb43e867bc630cf7a757bbb873317232071fb1c9a5899c971fea064ee6a58565887f022a55bf9cab911ee4a3fa2339f4727fdd4c11b745565e1ca1a1878fb
7
- data.tar.gz: 611081e8085eb8fb7fd6679525b39d4614d86b8361f8f779678c940ddd9d4fa5bf0704c4d697ebbfb9b64562621b4883cfc2f2b2f545f4f035af1aa1aa467f85
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
@@ -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.67"
5
5
  end
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
- Resend.api_key = ENV["RESEND_API_KEY"]
22
+ resend_config = YAML.load_file("/etc/harbr/resend.yml")
23
23
 
24
+ Resend.api_key = ENV["key"]
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.67
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delaney Kuldvee Burke