Sha256: 5fad98e30415c294ba5b9bfa75a0f0789c33c9d1b0dffb8854d4ae9314a57cf1
Contents?: true
Size: 447 Bytes
Versions: 5
Compression:
Stored size: 447 Bytes
Contents
# test for existence class Bard::Provision::HTTP < Bard::Provision def call print "HTTP:" target_host = URI.parse(server.ping.first).host if system "curl -s --resolve #{target_host}:80:#{provision_server.ssh_uri.host} http://#{target_host} -I | grep -i \"x-powered-by: phusion passenger\" >/dev/null 2>&1" puts " ✓" else puts " !!! not serving a rails app from #{provision_server.ssh_uri.host}" end end end
Version data entries
5 entries across 5 versions & 1 rubygems