Simple CLI for apigeoloc
83 84 85 86 87 88
# File 'lib/apigeoloc/cli.rb', line 83 def match(url, cidr) opts = options.dup matcher = APIGeoloc::Matcher.new.send(opts['source'], url, cidr, opts) \ unless opts['simulation'] matcher.match unless opts['simulation'] end
24 25 26
# File 'lib/apigeoloc/cli.rb', line 24 def version puts "APIGeoloc version #{APIGeoloc::VERSION}" end