harbr 0.1.64 → 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: 6e4ffc612a6071dbdcf8e99394a48b01a351465cc90f00634bce0e4f13d6ddd0
4
- data.tar.gz: 5121456431ace3ccc24eaebdb5ff7709eec161f528cdef9e7cdd97e014b090f4
3
+ metadata.gz: a114138ef3d1f321f22ea3993a68f1cf8bc85f531e2243ed4369561cbb0e4d0e
4
+ data.tar.gz: 273489a6954b2213484a5b40c01ac3e9a6d1b68a4b69c2f7c925e8931c84e5a8
5
5
  SHA512:
6
- metadata.gz: 9c9494606ac0cf2c7d53a5da678d398b55db574ae4841ae6ac612557dd2a9ebf717b9e4d786c6d519955edb9536d91c737fa9bcba048603f216faae8688b0f0a
7
- data.tar.gz: 41a1c84ae3753d2d73f098e22ee40c9b25736db1c4b382c14fd3268c0ed18cc0663a6eb42fb5dec4359e481d2f853844ac49f2a12399ce9e26a7a874c45bb2bb
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.64"
4
+ VERSION = "0.1.66"
5
5
  end
data/lib/harbr.rb CHANGED
@@ -21,13 +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
 
33
+ puts "Sending notification: #{params}"
34
+
31
35
  Resend::Emails.send(params)
32
36
  rescue => e
33
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.64
4
+ version: 0.1.66
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delaney Kuldvee Burke