Sha256: bdda1b9a59d2986b185aa2a73fed9ac4758966ed93606656a61b64fa41e14aa8

Contents?: true

Size: 178 Bytes

Versions: 84

Compression:

Stored size: 178 Bytes

Contents

#!/usr/bin/env ruby

require 'open-uri'

page = ARGV[0]
string = ARGV[1]

exit 2 unless page && string

body = open(page).read
if body =~  /#{string}/
  exit 0
else
  exit 2
end

Version data entries

84 entries across 84 versions & 2 rubygems

Version Path
flapjack-0.5.1 lib/flapjack/checks/http_content
flapjack-0.4.12 lib/flapjack/checks/http_content
flapjack-0.4.11 lib/flapjack/checks/http_content
flapjack-0.4.10 lib/flapjack/checks/http_content