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

      Type.cache_all!
      Zone.cache_all!
      if args.empty?
        servers = Server.find(:all)
      else
        servers = Server.find_or_call(args) do |id|
          warn "Couldn't find server #{id}"
        end
      end
      render_table(servers, global_options)
    end
  end
end

module Brightbox
  desc 'List servers'
  arg_name '[server-id...]'
  command [:list] do |c|
    c.action do |global_options,options,args|
      if args.empty?
        servers = Server.find(:all)
      else
        servers = Server.find_or_call(args) do |id|
          warn "Couldn't find server #{id}"
        end
      end
      render_table(servers, global_options)
    end
  end
end

Remove calls to Type & Zone.cache_all
Remove calls to Type & Zone.cache_all
