19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# File 'lib/kitsune/kit/commands/setup_redis_docker.rb', line 19
def create
redis_defaults = Kitsune::Kit::Defaults.redis
if redis_defaults[:redis_password] == "secret"
say "⚠️ Warning: You are using the default Redis password ('secret').", :yellow
if ENV.fetch("KIT_ENV", "development") == "production"
abort "❌ Production environment requires a secure Redis password!"
else
say "🔒 Please change REDIS_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, redis_defaults, filled_options)
end
end
|