Puppet::Functions.create_function(:get_opengrok_fname) do
  dispatch :get_opengrok_fname do
    param 'String', :opengrok_url
  end

  def get_opengrok_fname(opengrok_url)
    a = opengrok_url.lines('/')
    a.last
  end

end

Puppet::Functions.create_function(:get_opengrok_fname) do
  dispatch :get_opengrok_fname do
    param 'String', :opengrok_url
  end

  def get_opengrok_fname(opengrok_url)
    a = opengrok_url.split('/')
    a.last
  end

end

Use split rather than lines
Use split rather than lines

Signed-off-by: Jordan Conway <bb3bf96ee76b8b43aa7e5815135ed8d69362d4f1@linuxfoundation.org>
