Sha256: a7695ed61fe5e0cf9d528c0de5afb004921499194196b8771ef351b00f8a6ea4
Contents?: true
Size: 691 Bytes
Versions: 3
Compression:
Stored size: 691 Bytes
Contents
#!/usr/bin/env ruby lib = File.expand_path(File.dirname(__FILE__) + '/../lib') $LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib) require 'cohesion' args = ARGV.dup ARGV.clear case args[0] when "check" if args[1].nil? puts puts "Error, URL is not specified. You must specify the url you wish to check" puts else failures = Cohesion::Check.site(args[1]) if failures.count == 0 exit(true) else exit(false) end end else puts "Usage: cohesion command options" puts puts " check" puts " cohesion check http://your-site-to-check.com/" puts puts " help" puts " Produces this information" puts end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cohesion-0.0.4 | bin/cohesion |
cohesion-0.0.3 | bin/cohesion |
cohesion-0.0.2 | bin/cohesion |