Use dotenv to load .env

This commit is contained in:
David Heinemeier Hansson
2023-01-30 16:39:38 +01:00
parent 3ebf8d7777
commit 0f0529c785
3 changed files with 4 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ PATH
specs: specs:
mrsk (0.3.1) mrsk (0.3.1)
activesupport (>= 7.0) activesupport (>= 7.0)
dotenv (~> 2.8)
sshkit (~> 1.21) sshkit (~> 1.21)
thor (~> 1.2) thor (~> 1.2)
@@ -33,6 +34,7 @@ GEM
debug (1.7.1) debug (1.7.1)
irb (>= 1.5.0) irb (>= 1.5.0)
reline (>= 0.3.1) reline (>= 0.3.1)
dotenv (2.8.1)
erubi (1.12.0) erubi (1.12.0)
i18n (1.12.0) i18n (1.12.0)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)

View File

@@ -3,6 +3,7 @@
# Prevent failures from being reported twice. # Prevent failures from being reported twice.
Thread.report_on_exception = false Thread.report_on_exception = false
require "dotenv/load"
require "mrsk/cli" require "mrsk/cli"
begin begin

View File

@@ -15,4 +15,5 @@ Gem::Specification.new do |spec|
spec.add_dependency "activesupport", ">= 7.0" spec.add_dependency "activesupport", ">= 7.0"
spec.add_dependency "sshkit", "~> 1.21" spec.add_dependency "sshkit", "~> 1.21"
spec.add_dependency "thor", "~> 1.2" spec.add_dependency "thor", "~> 1.2"
spec.add_dependency "dotenv", "~> 2.8"
end end