opts.on('-o','--output','Output oarnodesetting command into a file. Default: stdout')do|o|
cluster_path.join("nodes").mkpath()
options[:output]=o
end
# Write cluster info w/o nodes entries
opts.on('-e','--exec','Directly apply the changes to the OAR server')do|e|
cluster["type"]="cluster"
options[:exec]=e
cluster["uid"]=cluster_uid
end
# On the previous version of this script, cluster["created_ad"] was generated from a Ruby Time. cluster["created_ad"] is now a Ruby Date at JSON import.
opts.on("-d","--diff [YAML filename]",
# As Date.httpdate and Time.httpdate does not behave the same with timezone, it is converted here as a Ruby time.
"Only generates the minimal list of commands needed to update the site configuration",