Module: Meroku::CLI::Secrets
- Defined in:
- lib/meroku/cli/secrets.rb
Overview
Logic related to apiusername, apipassword and the env file
Class Method Summary collapse
Class Method Details
.load(admin: false) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/meroku/cli/secrets.rb', line 5 def self.load(admin: false) return unless admin env_file = Dir.home + '/.meroku/meroku.env' abort "error: File not found (#{env_file})" unless File.exist?(env_file) Dotenv.load(env_file) end |