mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
removed deprecated alias option
Signed-off-by: Kerry Vance <vancelot@osuosl.org>
This commit is contained in:
parent
75b17561ee
commit
9dafab2215
1 changed files with 3 additions and 5 deletions
|
@ -15,12 +15,12 @@ module Inspec::Resources
|
|||
end
|
||||
|
||||
describe sys_info do
|
||||
its('hostname') { should eq 'example.com' }
|
||||
its('fqdn') { should eq 'user.example.com' }
|
||||
end
|
||||
|
||||
EXAMPLE
|
||||
|
||||
%w{ alias domain fqdn ip-address short }.each do |opt|
|
||||
%w{ domain fqdn ip-address short }.each do |opt|
|
||||
define_method(opt.to_sym) do
|
||||
hostname(opt)
|
||||
end
|
||||
|
@ -33,12 +33,10 @@ module Inspec::Resources
|
|||
opt = case opt
|
||||
when "f", "long", "fqdn", "full"
|
||||
" -f"
|
||||
when "a", "alias"
|
||||
" -a"
|
||||
when "d", "domain"
|
||||
" -d"
|
||||
when "i", "ip-address"
|
||||
" -i"
|
||||
" -I"
|
||||
when "s", "short"
|
||||
" -s"
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue