Class: Superbot::Cloud::CLI::Token::RevokeCommand
- Inherits:
-
BaseCommand
- Object
- Clamp::Command
- LoginRequiredCommand
- OrganizationBasedCommand
- BaseCommand
- Superbot::Cloud::CLI::Token::RevokeCommand
- Defined in:
- lib/superbot/cloud/cli/token/revoke_command.rb
Instance Method Summary collapse
Methods inherited from LoginRequiredCommand
Methods included from Validations
Instance Method Details
#execute ⇒ Object
10 11 12 |
# File 'lib/superbot/cloud/cli/token/revoke_command.rb', line 10 def execute revoke_token end |
#revoke_token ⇒ Object
14 15 16 17 |
# File 'lib/superbot/cloud/cli/token/revoke_command.rb', line 14 def revoke_token api_response = Superbot::Cloud::Api.request(:revoke_access_token, params: { organization_name: organization, token: token }) puts "Token was successfully revoked" end |