Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9344792
options.erb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
836 B
Subscribers
None
options.erb
View Options
<%-
def
bool2str
(
v
)
case
v
when
true
'yes'
when
false
'no'
else
v
end
end
-%>
<%-
@options
.
keys
.
sort_by
{
|
sk
|
(
sk
.
to_s
.
downcase
.
include?
"match"
)
?
'zzz'
+
sk
.
to_s
:
sk
.
to_s
}
.
each
do
|
k
|
-%>
<%-
v
=
@options
[
k
]
-%>
<%-
if
v
.
is_a?
(
Hash
)
-%>
<%=
k
%>
<%-
v
.
keys
.
sort
.
each
do
|
key
|
-%>
<%-
value
=
v
[
key
]
-%>
<%-
if
value
.
is_a?
(
Array
)
-%>
<%-
value
.
each
do
|
a
|
-%>
<%-
if
a
!=
''
-%>
<%=
key
%>
<%=
bool2str
(
a
)
%>
<%-
end
-%>
<%-
end
-%>
<%-
elsif
value
!=
''
-%>
<%=
key
%>
<%=
bool2str
(
value
)
%>
<%-
end
-%>
<%-
end
-%>
<%-
else
-%>
<%-
if
v
.
is_a?
(
Array
)
-%>
<%-
v
.
each
do
|
a
|
-%>
<%-
if
a
!=
''
-%>
<%=
k
%>
<%=
bool2str
(
a
)
%>
<%-
end
-%>
<%-
end
-%>
<%-
elsif
v
!=
:undef
and
v
!=
''
-%>
<%=
k
%>
<%=
bool2str
(
v
)
%>
<%-
end
-%>
<%-
end
-%>
<%-
end
-%>
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Fri, Jul 4, 2:48 PM (5 d, 23 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3333733
Attached To
rSPSSH puppet-saz-ssh
Event Timeline
Log In to Comment