Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reference-repository
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
grid5000
reference-repository
Commits
388bc8d1
Commit
388bc8d1
authored
9 years ago
by
Jérémie Gaidamour
Browse files
Options
Downloads
Patches
Plain Diff
[dev] reference-repo.rb -h
parent
2792b020
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dev/reference-api/reference-api.rb
+16
-0
16 additions, 0 deletions
dev/reference-api/reference-api.rb
with
16 additions
and
0 deletions
dev/reference-api/reference-api.rb
+
16
−
0
View file @
388bc8d1
#!/usr/bin/ruby
require
'pp'
require
'optparse'
require
'erb'
require
'fileutils'
require
'pathname'
...
...
@@ -45,6 +46,21 @@ def net_switch_port_lookup(site, node_uid, interface='')
return
nil
end
OptionParser
.
new
do
|
opts
|
opts
.
banner
=
"Usage: reference-apo.rb"
opts
.
separator
""
opts
.
separator
"This script generates the reference-api JSON (data/) from the input files (input/)."
opts
.
separator
"It does not have any option."
opts
.
separator
""
# Print an options summary.
opts
.
on_tail
(
"-h"
,
"--help"
,
"Show this message"
)
do
puts
opts
exit
end
end
.
parse!
#
# Write grid info
#
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment