class Kitsune::Kit::Commands::SetupPostgresDocker
def create
def create postgres_defaults = Kitsune::Kit::Defaults.postgres if postgres_defaults[:postgres_password] == "secret" say "⚠️ Warning: You are using the default PostgreSQL password ('secret').", :yellow if ENV.fetch("KIT_ENV", "development") == "production" abort "❌ Production environment requires a secure PostgreSQL password!" else say "🔒 Please change POSTGRES_PASSWORD in your .env if needed.", :yellow end end filled_options = Kitsune::Kit::OptionsBuilder.build( options, required: [:server_ip], defaults: Kitsune::Kit::Defaults.ssh ) with_ssh_connection(filled_options) do |ssh| perform_setup(ssh, postgres_defaults) database_url = build_database_url(filled_options, postgres_defaults) say "🔗 Your DATABASE_URL is:\t", :cyan say database_url, :green end end