Sha256: 845ba627a554eaf922d1071f29ed8a6d5f6e8e2912c2fc8ac73b2cf45b7256f1
Contents?: true
Size: 480 Bytes
Versions: 16
Compression:
Stored size: 480 Bytes
Contents
module Brightbox desc 'Shutdown the specified servers, aka clicking "shutdown" in the OS' arg_name 'server-id...' command [:shutdown] do |c| c.action do |global_options,options,args| raise "You must specify servers to shutdown" if args.empty? servers = Server.find_or_call(args) do |id| raise "Couldn't find server #{id}" end servers.each do |s| info "Shutting down server #{s}" s.shutdown end end end end
Version data entries
16 entries across 16 versions & 2 rubygems