lib/adapters/settings.rb in idonethis-cli-0.6.0 vs lib/adapters/settings.rb in idonethis-cli-0.7.0

- old
+ new

@@ -1,20 +1,20 @@ -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 +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 \ No newline at end of file