Class: Superbot::Cloud::CLI::Webdriver::DeleteCommand
- Inherits:
-
BaseCommand
- Object
- Clamp::Command
- LoginRequiredCommand
- OrganizationBasedCommand
- BaseCommand
- Superbot::Cloud::CLI::Webdriver::DeleteCommand
- Defined in:
- lib/superbot/cloud/cli/webdriver/delete_command.rb
Instance Method Summary collapse
Methods inherited from LoginRequiredCommand
Methods included from Validations
Instance Method Details
#delete_session ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/superbot/cloud/cli/webdriver/delete_command.rb', line 14 def delete_session session_id_list.each do |session_id| Superbot::Cloud::Api.request( :delete_webdriver_session, params: { session_id: session_id, organization_name: organization } ) puts "Webdriver session #{session_id} removal has been requested." rescue SystemExit p # skip to next webdriver session end end |
#execute ⇒ Object
10 11 12 |
# File 'lib/superbot/cloud/cli/webdriver/delete_command.rb', line 10 def execute delete_session end |