configuration-in-hiera
Robert Gerus 2015-04-16 10:34:09 +02:00
parent ef6c54e0c1
commit 52c1a888cf
1 changed files with 1 additions and 1 deletions

View File

@ -2,6 +2,6 @@ require 'net/http'
require 'nokogiri'
Client.register_command("sjp") { |args|
doc = Nokogiri::HTML(Net::HTTP.get(URI(Config.lookup("commands::sjp::url") + args:0)))
doc = Nokogiri::HTML(Net::HTTP.get(URI(Config.lookup("commands::sjp::url") + args[0])))
doc.xpath('//ul[@id="listahasel"]/li/div/div').inner_text
}