Sha256: 4402b3f2343e8e1213f28c2d431797934b741e2914b19554b5cd18e8b0b113c1
Contents?: true
Size: 529 Bytes
Versions: 2
Compression:
Stored size: 529 Bytes
Contents
module Brightbox command [:servers] do |cmd| cmd.desc "Show detailed server info" cmd.arg_name "server-id..." cmd.command [:show] do |c| c.action do |global_options, _options, args| raise "You must specify server IDs to show" if args.empty? servers = DetailedServer.find_or_call(args) do |id| raise "Couldn't find a server with ID #{id}" end table_opts = global_options.merge(:vertical => true) render_table(servers, table_opts) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
brightbox-cli-5.0.0 | lib/brightbox-cli/commands/servers/show.rb |
brightbox-cli-5.0.0.rc2 | lib/brightbox-cli/commands/servers/show.rb |