Class: Talker::CLI
- Inherits:
-
Object
- Object
- Talker::CLI
- Defined in:
- lib/talker/cli.rb
Class Method Summary collapse
Class Method Details
.load_token ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/talker/cli.rb', line 3 def self.load_token token_path = File.join(ENV['HOME'], '.talker') unless File.file?(token_path) abort <<-EOS Place your Talker Token in #{token_path}. You can find your token in https://myaccount.talkerapp.com/settings EOS end File.read(token_path).strip end |