Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
grid5000
reference-repository
Commits
388bc8d1
Commit
388bc8d1
authored
Apr 20, 2016
by
Jérémie Gaidamour
Browse files
[dev] reference-repo.rb -h
parent
2792b020
Changes
1
Hide whitespace changes
Inline
Side-by-side
dev/reference-api/reference-api.rb
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
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment