Sha256: 81020b661b20ad97be561e7f9c8cd56b1f9d5c2faa613a088d145262a8dd7ad4

Contents?: true

Size: 399 Bytes

Versions: 10

Compression:

Stored size: 399 Bytes

Contents

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

      if args.empty?
        server_groups = ServerGroup.find(:all)
      else
        server_groups = ServerGroup.find_or_call(args) do |id|
          warn "Couldn't find server group #{id}"
        end
      end
      render_table(server_groups, global_options)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/commands/groups-list.rb
brightbox-cli-0.18.0 lib/brightbox-cli/commands/groups-list.rb
brightbox-cli-0.17.5 lib/brightbox-cli/commands/groups-list.rb
brightbox-cli-0.17.4 lib/brightbox-cli/commands/groups-list.rb
brightbox-cli-0.17.3 lib/brightbox-cli/commands/groups-list.rb
brightbox-cli-0.17.2 lib/brightbox-cli/commands/groups-list.rb
brightbox-cli-0.17.1 lib/brightbox-cli/commands/groups-list.rb
brightbox-cli-0.17.0 lib/brightbox-cli/commands/groups-list.rb
brightbox-cli-0.16.0 lib/brightbox-cli/commands/groups-list.rb
brightbox-cli-0.15.0 lib/brightbox-cli/commands/groups-list.rb