Class: DNSCheck::CLI

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/dns-check/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCLI

Returns a new instance of CLI.



16
17
18
19
# File 'lib/dns-check/cli.rb', line 16

def initialize
  super
  @args = ARGV
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



14
15
16
# File 'lib/dns-check/cli.rb', line 14

def args
  @args
end

Instance Method Details

#runObject



21
22
23
24
# File 'lib/dns-check/cli.rb', line 21

def run
  config.merge!(parse_options)
  DNSCheck::Node.start
end