module Idonethis::Adapters module Settings class << self def credential from_disk || from_env end private def from_disk require 'yaml' YAML.load_file Idonethis::SettingsFile.path if Idonethis::SettingsFile.exists? end def from_env { token: ENV["TOKEN"], team: ENV["TEAM"] } end end end end