Sha256: 799e341f0a51ce54f5631db80e645c2375e6d29b5241940a1d932f83adf74c25
Contents?: true
Size: 624 Bytes
Versions: 7
Compression:
Stored size: 624 Bytes
Contents
module App42::Command class Auth class << self include App42::Command::UserToken include App42::Base::Util # @return [TRUE/FALSE] def logged_in? check_key_file? end def is_authorize?(api_key, secret_key) #:ndoc if api_key.nil? || secret_key.nil? message "#{Message::ADD_KEY}", true, 'red' puts App42::Base::Help.addkeys exit! elsif api_key.size == 1 || secret_key.size == 1 message "#{Message::WRONG_KEY}", true, 'red' puts App42::Base::Help.add exit! end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems