Sha256: 8431d7213cb9d3abd59d8992a4a4713957ecc9c740980703c84460f67750eaf0
Contents?: true
Size: 532 Bytes
Versions: 3
Compression:
Stored size: 532 Bytes
Contents
module Twurl class AppOnlyTokenInformationController < AbstractCommandController NO_ISSUED_TOKENS_MESSAGE = "No issued application-only (Bearer) tokens" def dispatch rcfile = OAuthClient.rcfile if rcfile.empty? || rcfile.bearer_tokens.nil? CLI.puts NO_ISSUED_TOKENS_MESSAGE else tokens = rcfile.bearer_tokens CLI.puts "[consumer_key: bearer_token]" tokens.each_key do |consumer_key| CLI.puts "#{consumer_key}: (omitted)" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems