Sha256: 8ea820add5d5da233017c34d707c8f0854a0ffd61b496792f007394edf0a87ee
Contents?: true
Size: 521 Bytes
Versions: 54
Compression:
Stored size: 521 Bytes
Contents
module Brightbox command [:servers] do |cmd| cmd.desc I18n.t("servers.reset.desc") cmd.arg_name "server-id..." cmd.command [:reset] do |c| c.action do |_global_options, _options, args| raise "You must specify servers to reset" if args.empty? servers = Server.find_or_call(args) do |id| raise "Couldn't find #{id}" end servers.each do |server| info "Sending reset to #{server}" server.reboot(true) end end end end end
Version data entries
54 entries across 54 versions & 1 rubygems