Sha256: c82e56c3e051a5f4dc55586fefa42ef3154e3d7a55f575cd0e1a85fecf5be403
Contents?: true
Size: 502 Bytes
Versions: 4
Compression:
Stored size: 502 Bytes
Contents
module Brightbox command [:groups] do |cmd| cmd.default_command :list cmd.desc "List server groups" cmd.command [:list] do |c| c.action do |global_options, options, args| if args.empty? server_groups = ServerGroup.find(:all) else server_groups = ServerGroup.find_or_call(args) do |id| warn "Couldn't find server group #{id}" end end render_table(server_groups, global_options) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems