Class: Smokeit::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/smokeit/base.rb

Class Method Summary collapse

Class Method Details

.smoke!(server, res_code) ⇒ Object



5
6
7
8
# File 'lib/smokeit/base.rb', line 5

def self.smoke!(server, res_code)
  response = Net::HTTP.get_response(URI(server))
  response.code == String(res_code)
end