Class: Bard::Provision::HTTP
- Inherits:
-
Bard::Provision
- Object
- Struct
- Bard::Provision
- Bard::Provision::HTTP
- Defined in:
- lib/bard/new/provision/http.rb
Overview
test for existence
Instance Attribute Summary
Attributes inherited from Bard::Provision
Instance Method Summary collapse
Methods inherited from Bard::Provision
Instance Method Details
#call ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/bard/new/provision/http.rb', line 6 def call print "HTTP:" target_host = URI.parse(target.url).host if system "curl -sf --resolve #{target_host}:80:#{provision_server.ssh_uri.host} http://#{target_host} -o /dev/null" puts " ✓" else puts " !!! not serving a rails app from #{provision_server.ssh_uri.host}" end end |