Sha256: e1c5fc79e10503fa17053356c5345ed1e8a725fc6ecf6d3b298503fbd94baf25
Contents?: true
Size: 520 Bytes
Versions: 3
Compression:
Stored size: 520 Bytes
Contents
#!/usr/bin/env ruby require 'perus' require 'optparse' options_path = Perus::Pinger::DEFAULT_PINGER_OPTIONS_PATH ARGV.options do |opts| opts.banner = "Usage: perus-pinger [options]" opts.on('-c', '--config', String, "Path to config file (default: #{Perus::Pinger::DEFAULT_PINGER_OPTIONS_PATH})") do |c| options_path = c end opts.on('-h', '--help', 'Prints this help') do puts opts exit end opts.parse! end pinger = Perus::Pinger::Pinger.new(options_path) pinger.run
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
perus-0.1.2 | exe/perus-pinger |
perus-0.1.1 | exe/perus-pinger |
perus-0.1.0 | exe/perus-pinger |