Class: Conn
- Inherits:
-
IRB::Command::Base
- Object
- IRB::Command::Base
- Conn
- Defined in:
- lib/alet/irb/command/conn.rb
Instance Method Summary collapse
Instance Method Details
#execute(arg) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/alet/irb/command/conn.rb', line 8 def execute(arg) argv = arg.split(' ') if argv.empty? puts '【Current Org settings】' show_org_settings puts '【Rest Client settings】' show_rest_client_settings return end case argv.first when 'reset' reset_connection else puts t('conn.invalid_subcommand')+ ": #{argv.first}" end end |