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.6.59 lib/flapjack/checks/http_content
flapjack-0.6.58 lib/flapjack/checks/http_content
flapjack-0.6.57 lib/flapjack/checks/http_content
flapjack-0.6.56 lib/flapjack/checks/http_content
flapjack-0.6.55 lib/flapjack/checks/http_content
flapjack-0.6.54 lib/flapjack/checks/http_content
flapjack-0.6.53 lib/flapjack/checks/http_content
flapjack-0.6.52 lib/flapjack/checks/http_content
flapjack-0.6.51 lib/flapjack/checks/http_content
flapjack-0.6.50 lib/flapjack/checks/http_content
flapjack-0.6.49 lib/flapjack/checks/http_content
flapjack-0.6.48 lib/flapjack/checks/http_content
flapjack-0.6.47 lib/flapjack/checks/http_content
flapjack-0.6.46 lib/flapjack/checks/http_content
flapjack-0.6.45 lib/flapjack/checks/http_content
flapjack-0.6.44 lib/flapjack/checks/http_content
flapjack-0.6.43 lib/flapjack/checks/http_content
flapjack-0.6.42 lib/flapjack/checks/http_content
flapjack-0.6.41 lib/flapjack/checks/http_content
flapjack-0.6.40 lib/flapjack/checks/http_content