Method: Ufo::CLI::Scale#warning

Defined in:
lib/ufo/cli/scale.rb

#warningObject



71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# File 'lib/ufo/cli/scale.rb', line 71

def warning
  autoscaling = Ufo.config.autoscaling
  return if autoscaling.manual_changes.warning == false or autoscaling.manual_changes.retain
  logger.info <<~EOL
    Note: The settings are temporary.
    They can be overwritten in the next `ufo ship` deploy.

    You can turn off this warning with

        config.autoscaling.manual_changes.warning = false

    Or you can use the

        config.autoscaling.manual_changes.retain = true

    For considerations, see: https://ufoships.com/docs/features/autoscaling/
  EOL
end