You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ian, this might help you. Within the knife cs plugin, they used the following function.
def confirm_action(question)
return true if locate_config_value(:yes)
result = ui.ask_question(question, :default => "Y" )
if result == "Y" || result == "y" then
return true
else
return false
end
end
So within the ui object you will find the ask method which you might want to reuse for this.
And I believe the config[:yes] is inherited by knife, so no need to do something extra for that (if I remember well ;)
In deploy
The text was updated successfully, but these errors were encountered: