Module: DNSUpdater::CLI
- Defined in:
- lib/dnsupdater/cli.rb
Overview
For usage in command-line applications
Class Method Summary collapse
-
.main(args) ⇒ Object
Main entry point for CLI.
Class Method Details
.main(args) ⇒ Object
Main entry point for CLI
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/dnsupdater/cli.rb', line 13 def self.main(args) = getOptions(args) if [:Serve] serveWebUpdates() else doSingleUpdate() end rescue RuntimeError => e abort(e.to_s) end |