Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 26 lines (21 sloc) 0.458 kb
884a29d @jpf - More descriptive title for the Quantcast list
authored
1 #!/usr/bin/env ruby
fc6aaaa @jpf Is now able to return SPF records
authored
2 # encoding: UTF-8
3 $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/lib')
4
5 require 'pp'
06785b7 @jpf Rename all instances of domain-profile to domain-profiler
authored
6 require 'domain-profiler'
284165d @jpf Simplify run.rb:
authored
7 require 'erb'
fc6aaaa @jpf Is now able to return SPF records
authored
8
0dd06d8 @icco Adds support for multiple arguments to ./profile
icco authored
9 def help
10 puts <<-help
11 Usage:
12 $ ./profile domain.com
13 help
14 end
15
16 if ($stdin.tty? && ARGV.empty?) || ARGV.delete('-h') || ARGV.delete('--help')
17 help
18 else
19 profile = nil
20
21 ARGV.each do |domain|
22 profile = DomainProfiler.new(domain)
23 puts ERB.new(File.read("view/text")).result
24 end
25 end
Something went wrong with that request. Please try again.