lib/jah/prayer.rb
# ping server to ensure that it is responsive
ping server to ensure that it is responsive
ping server to ensure that it is responsive
def ping
      if god?
        tries = 3
        begin
          @server.ping
        rescue Exception => e
          retry if (tries -= 1) > 1
          raise e, "The server is not available (or you do not have permissions to access it)"
        end
      end
    end
def ping if god? tries = 3 begin @server . ping rescue Exception => e retry if ( tries -= 1 ) > 1 raise e , "The server is not available (or you do not have permissions to access it)" end end end
ping server to ensure that it is responsive
ping server to ensure that it is responsive