Class: Mimas::Plugins::Redis::Commands::Install

Inherits:
CLI::Commands::BaseCommand
  • Object
show all
Defined in:
lib/mimas/plugins/redis/commands/install.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/install.rb', line 12

def call(server_name:, **options)
  server = Config.current.servers[server_name.to_sym]
  sudo_user = options[:user]

  server.install_redis(sudo_user: sudo_user)

  say ""
  say "Redis has been installed! 🎉"
end