Class: Superbot::Cloud::CLI::Run::ConsoleCommand
- Inherits:
-
BaseCommand
- Object
- Clamp::Command
- LoginRequiredCommand
- OrganizationBasedCommand
- BaseCommand
- Superbot::Cloud::CLI::Run::ConsoleCommand
- Defined in:
- lib/superbot/cloud/cli/run/console_command.rb
Instance Method Summary collapse
Methods inherited from LoginRequiredCommand
Methods included from Validations
Instance Method Details
#execute ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/superbot/cloud/cli/run/console_command.rb', line 10 def execute abort "Run is not active anymore" if fetch_interaction[:status] == 'aborted' loop do printf '> ' input = $stdin.gets exit if input.nil? cmd, arg = input.rstrip.split(' ') invoke_command(cmd, arg) end end |