Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F449189
domains_helper.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
Thu, Apr 24, 4:08 PM
Size
972 B
Mime Type
text/x-ruby
Expires
Sat, Apr 26, 4:08 PM (1 d, 17 h)
Engine
blob
Format
Raw Data
Handle
214864
Attached To
rWEBDNS WebDNS (edet4)
domains_helper.rb
View Options
module
DomainsHelper
# Human names for domain states
def
human_state
(
state
)
human
=
case
state
.
to_sym
when
:initial
then
'Initial'
when
:pending_install
then
'Becoming public'
when
:pending_signing
then
'Signing zone'
when
:wait_for_ready
then
'Waiting for KSK to become ready'
when
:pending_ds
then
'Publishing DS records'
when
:pending_ds_rollover
then
'Performing KSK rollover'
when
:pending_plain
then
'Removing dnssec'
when
:pending_remove
then
'Preparing removal'
when
:operational
then
'Operational'
when
:destroy
then
'Ready to be destroyed'
else
state
end
prog
=
Domain
.
dnssec_progress
(
state
)
return
human
if
prog
.
nil?
"
#{
human
}
(
#{
prog
}
)"
end
# Most of the time the parent zone will be easily computed
def
guess_parent_zone
(
name
)
name
.
split
(
'.'
,
2
)
.
last
||
''
end
end
Event Timeline
Log In to Comment