summaryrefslogtreecommitdiffstats
path: root/plugins/commands/bonjour.rb
diff options
context:
space:
mode:
authorRobert Gerus <arachnist@i.am-a.cat>2015-08-11 23:26:32 +0200
committerRobert Gerus <arachnist@i.am-a.cat>2015-08-11 23:26:32 +0200
commit2f0518a7f05fe878b552d7b3ec7056e3ab4a9a0a (patch)
tree7c7a4670e4e656ae9dad6836db8a86a6f7ae334f /plugins/commands/bonjour.rb
parente1ad4ad3d59a613d33271cd6b8d33bedaced847f (diff)
downloadrepost-configuration-in-hiera.tar.gz
repost-configuration-in-hiera.tar.bz2
repost-configuration-in-hiera.tar.xz
repost-configuration-in-hiera.zip
Modify the xpathconfiguration-in-hiera
Diffstat (limited to 'plugins/commands/bonjour.rb')
-rw-r--r--plugins/commands/bonjour.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/commands/bonjour.rb b/plugins/commands/bonjour.rb
index ac15e8f..f242c57 100644
--- a/plugins/commands/bonjour.rb
+++ b/plugins/commands/bonjour.rb
@@ -3,5 +3,5 @@ require 'nokogiri'
Client.register_command("bonjour") { |args|
link = Config.lookup("commands::bonjour::url") + String(rand(1..2370))
- Config.lookup("commands::bonjour::message") + Nokogiri::HTML(Net::HTTP.get(URI(link))).xpath('//div[@class="photo post"]/img/@src').inner_text
+ Config.lookup("commands::bonjour::message") + Nokogiri::HTML(Net::HTTP.get(URI(link))).xpath('//div[@class="photo post"]//img/@src').inner_text
}