Sha256: 37750e3d12819a322094b8b20a86987310e140d4f2b0bb09c5827347e945f2ff
Contents?: true
Size: 662 Bytes
Versions: 3
Compression:
Stored size: 662 Bytes
Contents
module Brightbox command [:lbs] do |cmd| cmd.desc "Show detailed load balancer info" cmd.arg_name "lbs-id..." cmd.command [:show] do |c| c.action do |global_options, options, args| raise "You must specify load balancers to show" if args.empty? lbs = LoadBalancer.find_or_call(args) do |id| raise "Couldn't find lb #{id}" end table_opts = global_options.merge({ :vertical => true, :fields => [:id, :status, :name, "created_at", "deleted_at", :policy, :cloud_ips, :nodes, :listeners, :healthcheck] }) render_table(lbs, table_opts) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
brightbox-cli-1.0.0 | lib/brightbox-cli/commands/lbs-show.rb |
brightbox-cli-1.0.0.rc2 | lib/brightbox-cli/commands/lbs-show.rb |
brightbox-cli-1.0.0.rc1 | lib/brightbox-cli/commands/lbs-show.rb |