- The generated UUID is a version 5 UUID with the V5 DNS namespace:
-
- 6ba7b810-9dad-11d1-80b4-00c04fd430c8
-
- This only supports a the V5 SHA-1 hash, using the DNS namespace.
-
- Please consult http://www.ietf.org/rfc/rfc4122.txt for the details on
- UUID generation and example implementation.
-
- No verification is present at the moment as whether the domain name given
- is in fact a correct fully-qualified domain name. Therefore any arbitrary
- string and/or alpha-numeric value can subside for a domain name.
- EOS
-
- END
-
- if args.length == 0
- raise(ArgumentError, "fqdn_uuid: No arguments given")
- elsif args.length == 1
- fqdn = args[0]
- else
- raise(ArgumentError, "fqdn_uuid: Too many arguments given (#{args.length})")
- end
+ raise(ArgumentError, 'fqdn_uuid: No arguments given') if args.empty?
+ raise(ArgumentError, "fqdn_uuid: Too many arguments given (#{args.length})") unless args.length == 1
+ fqdn = args[0]