Class: ADAssault::CLI::DNS::DUZDU::Get
Overview
command: ‘ada dns duzdu get`
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from BaseAction
command_name, #initialize, register
Class Method Details
.arguments ⇒ Object
26
27
28
|
# File 'lib/adassault/cli/dns/duzdu/get.rb', line 26
def arguments
%i[<name>]
end
|
.description ⇒ Object
18
19
20
|
# File 'lib/adassault/cli/dns/duzdu/get.rb', line 18
def description
'Get the value(s) of a DNS A record (IPv4) from the domain'
end
|
.long_description ⇒ Object
22
23
24
|
# File 'lib/adassault/cli/dns/duzdu/get.rb', line 22
def long_description
'<name>: DNS name, A record. The domain is automatically appended, e.g. test ➡️ test.example.org'
end
|
Instance Method Details
#run(args) ⇒ Object
11
12
13
14
15
|
# File 'lib/adassault/cli/dns/duzdu/get.rb', line 11
def run(args)
name = args.first
res = @duz.getv4(name)
@duz.display_record(name, res)
end
|