Sha256: 7fa968b46a8f75ac857e6d8eb6cc60c30b1fc4ab4f28cc1e43b2c64a1abe4c2c

Contents?: true

Size: 398 Bytes

Versions: 16

Compression:

Stored size: 398 Bytes

Contents

module Brightbox
  desc 'List load balancers'
  arg_name '[lb-id...]'
  command [:list] do |c|
    c.action do |global_options,options,args|

      if args.empty?
        lbs = LoadBalancer.find(:all)
      else
        lbs = LoadBalancer.find_or_call(args) do |id|
          warn "Couldn't find load balancer #{id}"
        end
      end

      render_table(lbs, global_options)
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/commands/lbs-list.rb
brightbox-cli-0.18.0 lib/brightbox-cli/commands/lbs-list.rb
brightbox-cli-0.17.5 lib/brightbox-cli/commands/lbs-list.rb
brightbox-cli-0.17.4 lib/brightbox-cli/commands/lbs-list.rb
brightbox-cli-0.17.3 lib/brightbox-cli/commands/lbs-list.rb
brightbox-cli-0.17.2 lib/brightbox-cli/commands/lbs-list.rb
brightbox-cli-0.17.1 lib/brightbox-cli/commands/lbs-list.rb
brightbox-cli-0.17.0 lib/brightbox-cli/commands/lbs-list.rb
brightbox-cli-0.16.0 lib/brightbox-cli/commands/lbs-list.rb
brightbox-cli-0.15.0 lib/brightbox-cli/commands/lbs-list.rb
brightbox-cli-0.14.1 lib/brightbox-cli/commands/lbs-list.rb
brightbox-cli-0.14.0 lib/brightbox-cli/commands/lbs-list.rb
brightbox-cli-0.13.1 lib/brightbox-cli/commands/lbs-list.rb
bbcloud-0.13.0 lib/bbcloud/commands/lbs-list.rb
brightbox-cli-0.13.0 lib/brightbox-cli/commands/lbs-list.rb
bbcloud-0.12.0 lib/bbcloud/commands/lbs-list.rb