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.39 lib/flapjack/checks/http_content
flapjack-0.6.38 lib/flapjack/checks/http_content
flapjack-0.6.37 lib/flapjack/checks/http_content
flapjack-0.6.36 lib/flapjack/checks/http_content
flapjack-0.6.35 lib/flapjack/checks/http_content
flapjack-0.6.34 lib/flapjack/checks/http_content
flapjack-0.6.33 lib/flapjack/checks/http_content
flapjack-0.6.32 lib/flapjack/checks/http_content
flapjack-0.6.31 lib/flapjack/checks/http_content
flapjack-0.6.30 lib/flapjack/checks/http_content
flapjack-0.6.29 lib/flapjack/checks/http_content
flapjack-0.6.28 lib/flapjack/checks/http_content
flapjack-0.6.27 lib/flapjack/checks/http_content
flapjack-0.6.26 lib/flapjack/checks/http_content
flapjack-0.6.25 lib/flapjack/checks/http_content
flapjack-0.6.24 lib/flapjack/checks/http_content
flapjack-0.6.23 lib/flapjack/checks/http_content
flapjack-0.5.5 lib/flapjack/checks/http_content
flapjack-0.5.4 lib/flapjack/checks/http_content
flapjack-0.5.3 lib/flapjack/checks/http_content