Sha256: ad8c0334dbd630d5d78c59a618cffd7986e2b7bc39ee29527c2d5a530ea229fe
Contents?: true
Size: 320 Bytes
Versions: 1
Compression:
Stored size: 320 Bytes
Contents
require 'thor' require_relative '../http_ping' module HttpPing class CLI < Thor desc "ping URL", "HTTP ping to given url and return duration " def ping(url) h_ping = HttpPing::H_PING.new(url) puts "Can ping : " + h_ping.ping?.to_s puts "Duration : " + h_ping.duration.to_s end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
HttpPing-0.1.0 | lib/HttpPing/cli.rb |