Module: DNSUpdater::CLI

Defined in:
lib/dnsupdater/cli.rb

Overview

For usage in command-line applications

Class Method Summary collapse

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)
    options = getOptions(args)
    if options[:Serve]
        serveWebUpdates(options)
    else
        doSingleUpdate(options)
    end
rescue RuntimeError => e
    abort(e.to_s)
end