Sha256: fdb8cb1e5bb0e2465becd33b86a43740e5498ced1b3c33653ad1de37f262058b

Contents?: true

Size: 364 Bytes

Versions: 5

Compression:

Stored size: 364 Bytes

Contents

module Meroku
  module CLI
    # Logic related to apiusername, apipassword and the env file
    module Secrets
      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
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
meroku-2.0.14 lib/meroku/cli/secrets.rb
meroku-2.0.13 lib/meroku/cli/secrets.rb
meroku-2.0.11 lib/meroku/cli/secrets.rb
meroku-2.0.10 lib/meroku/cli/secrets.rb
meroku-2.0.9 lib/meroku/cli/secrets.rb