Class: Mimas::Plugins::Redis::Commands::Configure
- Inherits:
-
CLI::Commands::BaseCommand
- Object
- CLI::Commands::BaseCommand
- Mimas::Plugins::Redis::Commands::Configure
- Defined in:
- lib/mimas/plugins/redis/commands/configure.rb
Instance Method Summary collapse
Instance Method Details
#call(server_name:, **options) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/mimas/plugins/redis/commands/configure.rb', line 12 def call(server_name:, **) server = Config.current.servers[server_name.to_sym] sudo_user = [:user] server.configure_redis(sudo_user: sudo_user) say "" say "Redis has been configured! 🎉" end |