lib/capistrano/tasks/nginx.rake
def add_sudo_if_required argument_list, *keys
    keys.each do | key |
      if nginx_use_sudo? key
        argument_list.unshift(:sudo)
        break
      end
    end
  end
# prepend :sudo to list if arguments if :key is in :nginx_use_sudo_for list
prepend :sudo to list if arguments if :key is in :nginx_use_sudo_for list
prepend : sudo to list if arguments if : key is in : nginx_use_sudo_for list
def add_sudo_if_required argument_list, *keys
    keys.each do | key |
      if nginx_use_sudo? key
        argument_list.unshift(:sudo)
        break
      end
    end
  end
def add_sudo_if_required argument_list , * keys keys . each do | key | if nginx_use_sudo? key argument_list . unshift ( :sudo ) break end end end
prepend :sudo to list if arguments if :key is in :nginx_use_sudo_for list
prepend : sudo to list if arguments if : key is in : nginx_use_sudo_for list
argument_list
keys