Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F5402233
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, Sep 9, 8:52 PM
Size
484 B
Mime Type
text/x-ruby
Expires
Fri, Sep 11, 8:52 PM (1 d, 5 h)
Engine
blob
Format
Raw Data
Handle
448063
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