lib/puppet_x/coi/jboss/internal/securitydomain_auditor.rb
# Method prepares lines outputed by JBoss CLI tool, changing output to be readable in Ruby
# @param lines [string[]]
Method prepares lines outputed by JBoss CLI tool, changing output to be readable in Ruby
Method prepares lines outputed by JBoss CLI tool changing output to be readable in Ruby
def preparelines(lines)
    lines.
      gsub(/\((\"[^\"]+\") => (\"[^\"]+\")\)/, '\1 => \2').
      gsub(/\[((?:[\n\s]*\"[^\"]+\" => \"[^\"]+\",?[\n\s]*)+)\]/m, '{\1}')
  end
def preparelines ( lines ) lines . gsub ( / \( ( \" [^ \" ]+ \" ) => ( \" [^ \" ]+ \" ) \) / , '\1 => \2' ) . gsub ( / \[ ((?:[ \n \s ]* \" [^ \" ]+ \"  =>  \" [^ \" ]+ \" ,?[ \n \s ]*)+) \] /m , '{\1}' ) end
Method prepares lines outputed by JBoss CLI tool, changing output to be readable in Ruby
Method prepares lines outputed by JBoss CLI tool changing output to be readable in Ruby
lines
None