Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1615512
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
Sun, Mar 22, 1:22 AM
Size
484 B
Mime Type
text/x-ruby
Expires
Tue, Mar 24, 1:22 AM (21 h, 15 m)
Engine
blob
Format
Raw Data
Handle
354448
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