MCPcopy
hub / github.com/diffgram/diffgram / rabbit_config

Method rabbit_config

install.py:636–652  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

634 return
635
636 def rabbit_config(self):
637 config_rabbit = bcolors.inputcolor(
638 'Do you want to set RabbitMQ Config? \n (default config: localhost:5672 => user - password will be "admin" - "admin"? [Y/n] ')
639 if config_rabbit.lower() == 'y' or config_rabbit.lower() == 'yes':
640 rabbit_username = bcolors.inputcolor('Please provide the RabbitMQ username: ')
641 rabbit_password = bcolors.inputcolor('Please provide the RabbitMQ password: ')
642 rabbit_host = bcolors.inputcolor('Please provide the RabbitMQ host (example: localhost): ')
643 rabbit_port = bcolors.inputcolor('Please provide the RabbitMQ port (example: 5672): ')
644 self.rabbit_username = rabbit_username
645 self.rabbit_pass = rabbit_password
646 self.rabbit_host = rabbit_host
647 self.rabbit_port = rabbit_port
648 else:
649 self.rabbit_username = 'admin'
650 self.rabbit_pass = 'admin'
651 self.rabbit_host = 'rabbitmq'
652 self.rabbit_port = 5672
653
654 def install(self):
655 self.print_logo()

Callers 1

installMethod · 0.95

Calls 1

inputcolorMethod · 0.80

Tested by

no test coverage detected