Commit 45f1e866 authored by Jérémie Gaidamour's avatar Jérémie Gaidamour
Browse files

[dev] -o FILE option

parent 8ac9a3be
......@@ -177,8 +177,9 @@ end
def oarcmd_set_node_properties(host, properties)
return "# #{host}: OK" if properties.size == 0
command = "# #{host}:\n"
command += "#{ENV["SUDO"]} oarnodesetting -h #{host} -p "
# command = "# #{host}:\n"
# command += "#{ENV["SUDO"]} oarnodesetting -h #{host} -p "
command = "oarnodesetting -h #{host} -p "
command +=
properties.to_a.map{ |(k,v)|
......
......@@ -50,7 +50,7 @@ OptionParser.new do |opts|
opts.separator ""
opts.separator "Output options:"
opts.on('-o', '--output', 'Output oarnodesetting command into a file. Default: stdout') do |o|
opts.on('-o FILE', '--output=FILE', 'Output oarnodesetting command into a file. Default: stdout') do |o|
options[:output] = o
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment