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