Sha256: a151acacce1c689e8832d2d6dae31f1e06a65658534322fc161a18902e76f992

Contents?: true

Size: 349 Bytes

Versions: 4

Compression:

Stored size: 349 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bbcloud-0.11.2 lib/bbcloud/commands/lbs-list.rb
bbcloud-0.11.1 lib/bbcloud/commands/lbs-list.rb
bbcloud-0.11.0 lib/bbcloud/commands/lbs-list.rb
bbcloud-0.10.1 lib/bbcloud/commands/lbs-list.rb