Good morning,
Im working on a chef plugin, that i did not write, and I realize that it needs an IF statement.
Pseduo:
If user root, then home is /root/
else
home is /home/$user
Im not a programmer at all so im not sure how much code to include, but this seems like the important section. Any takers for fixing this snippet for me?
Code:
user = params[:name]
group = params[:group] || user
home = params[:home] || "/home/#{user}"
keys = data_bag params[:keys]