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
auxesis-flapjack-0.4.10 lib/flapjack/checks/http_content
auxesis-flapjack-0.4.5 lib/flapjack/checks/http_content
auxesis-flapjack-0.4.6 lib/flapjack/checks/http_content
auxesis-flapjack-0.4.8 lib/flapjack/checks/http_content
auxesis-flapjack-0.4.9 lib/flapjack/checks/http_content
flapjack-0.7.34 lib/flapjack/checks/http_content
flapjack-0.7.33 lib/flapjack/checks/http_content
flapjack-0.7.32 lib/flapjack/checks/http_content
flapjack-0.7.31 lib/flapjack/checks/http_content
flapjack-0.7.30 lib/flapjack/checks/http_content
flapjack-0.7.29 lib/flapjack/checks/http_content
flapjack-0.7.28 lib/flapjack/checks/http_content
flapjack-0.7.27 lib/flapjack/checks/http_content
flapjack-0.7.26 lib/flapjack/checks/http_content
flapjack-0.7.25 lib/flapjack/checks/http_content
flapjack-0.7.22 lib/flapjack/checks/http_content
flapjack-0.7.21 lib/flapjack/checks/http_content
flapjack-0.7.20 lib/flapjack/checks/http_content
flapjack-0.7.19 lib/flapjack/checks/http_content
flapjack-0.7.18 lib/flapjack/checks/http_content