Method: Cfruby::Cfp_ParserLogic#form_groups

Defined in:
lib/libcfenjin/cfp_parserlogic.rb

#form_groups(line) ⇒ Object

Parse groups lines for Cfruby assignments like ‘sshd = ( hostname1 hostname2 )’



23
24
25
26
27
28
29
30
31
# File 'lib/libcfenjin/cfp_parserlogic.rb', line 23

def form_groups line
  return line if remark? line
  # Test for assignment with spaces and braces
  if line.strip !~ /^\w+\s+\=\s+\(\s.*\s\)$/
    raise 'Illegal groups command: "'+line+'"' if line.strip != ''
  end
  line = convert_class_assignments(line)
  convert_global_variables(line)
end