lib/app42/command/authorize.rb in app42-0.6.1 vs lib/app42/command/authorize.rb in app42-0.6.2

- old
+ new

@@ -9,19 +9,24 @@ # @return [TRUE/FALSE] def logged_in? check_key_file? end - def is_authorize?(api_key, secret_key) #:ndoc + 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 + + def is_authorize_for_dedicated? + subscription = App42::Command::Base.new.get_subscription + return subscription["success"] end end end \ No newline at end of file