Sha256: fbe8c8d582c678bb55b4adb9acc7031361a0f823fe033ef048dda130d63e03e0
Contents?: true
Size: 618 Bytes
Versions: 1
Compression:
Stored size: 618 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) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
app42-0.5.3 | lib/app42/command/authorize.rb |