The replacements argument to the prompt! method updates the model with the new values. This occur before the method prompts for any missing keys within its template.
It should not however be a positional argument as it's inconsistent with the other class methods. Instead, replacements should be a keyword argument.
The method needs refactoring in general, possible to behave more like flight-metal version. However it current works in general.
|
def self.prompt!(replacements=nil, *a, all: false) |
The
replacementsargument to theprompt!method updates the model with the new values. This occur before the method prompts for any missing keys within its template.It should not however be a positional argument as it's inconsistent with the other class methods. Instead,
replacementsshould be a keyword argument.The method needs refactoring in general, possible to behave more like
flight-metalversion. However it current works in general.flight-cloud/lib/cloudware/models/deployment.rb
Line 96 in 6a86429