Class: Mimas::Plugins::PostgreSQL::Commands::Configure

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

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

  server.configure_postgresql(sudo_user: sudo_user)

  say ""
  say "PostgreSQL has been configured! 🎉"
end