Class: ADAssault::CLI::DNS::DUZDU::Delete
Overview
command: ‘ada dns duzdu delete`
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from BaseAction
command_name, #initialize, register
Class Method Details
.arguments ⇒ Object
25
26
27
|
# File 'lib/adassault/cli/dns/duzdu/delete.rb', line 25
def arguments
%i[<name>]
end
|
.description ⇒ Object
17
18
19
|
# File 'lib/adassault/cli/dns/duzdu/delete.rb', line 17
def description
'Remove a DNS A record (IPv4) via dynamic updates'
end
|
.long_description ⇒ Object
21
22
23
|
# File 'lib/adassault/cli/dns/duzdu/delete.rb', line 21
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
|
# File 'lib/adassault/cli/dns/duzdu/delete.rb', line 11
def run(args)
res = @duz.deletev4(args[0])
@duz.display(res, self.class.command_name)
end
|