Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1300448
dnssec_policy.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Nov 19, 1:54 PM
Size
484 B
Mime Type
text/x-ruby
Expires
Fri, Nov 21, 1:54 PM (23 m, 7 s)
Engine
blob
Format
Raw Data
Handle
292749
Attached To
rWEBDNS WebDNS (edet4)
dnssec_policy.rb
View Options
class
DnssecPolicy
<
ActiveRecord
::
Base
ATTRIBUTES
=
{
'KSK rollover'
=>
{
css
:
'Keys KSK Lifetime'
,
type
:
:iso8601
},
'ZSK rollover'
=>
{
css
:
'Keys ZSK Lifetime'
,
type
:
:iso8601
}
}
def
info
hash
=
{}
xml
=
Nokogiri
::
XML
(
policy
)
ATTRIBUTES
.
each
{
|
name
,
attr
|
hash
[
name
]
=
xml
.
at_css
(
attr
[
:css
]
)
.
content
hash
[
name
]
=
Iso8601Duration
.
to_seconds
(
hash
[
name
]
)
if
attr
[
:type
]
==
:iso8601
}
hash
end
end
Event Timeline
Log In to Comment