methods/ai_client.rb
# Make sure user group is greater than 10
Make sure user group is greater than 10
Make sure user group is greater than 10
def check_valid_gid(options,answer)
  correct = 1
  if answer.match(/[a-z,A-Z]/)
    correct = 0
  else
    if Integer(answer) < 10
      correct = 0
      handle_output(options,"GID must be greater than 10")
    end
  end
  return correct
end
def check_valid_gid ( options , answer ) correct = 1 if answer . match ( / [a-z,A-Z] / ) correct = 0 else if Integer ( answer ) < 10 correct = 0 handle_output ( options , "GID must be greater than 10" ) end end return correct end
Make sure user group is greater than 10
Make sure user group is greater than 10
options
<not_specific>
answer
<not_specific>