Sha256: 235cc7189ac27eccd48d1a337be20d1ed2d472a145aa9d8296de740ab9035181

Contents?: true

Size: 488 Bytes

Versions: 17

Compression:

Stored size: 488 Bytes

Contents

module Brightbox
  command [:groups] do |cmd|
    cmd.desc I18n.t("groups.show.desc")
    cmd.arg_name "[grp-id..]"
    cmd.command [:show] do |c|
      c.action do |global_options, _options, args|
        raise "You must specify server groups to show" if args.empty?

        sgs = DetailedServerGroup.find_or_call(args) do |id|
          raise "Couldn't find server group #{id}"
        end
        render_table(sgs, global_options.merge(:vertical => true))
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
brightbox-cli-5.0.0.rc2 lib/brightbox-cli/commands/groups/show.rb
brightbox-cli-5.0.0.rc1 lib/brightbox-cli/commands/groups/show.rb
brightbox-cli-5.0.0.alpha lib/brightbox-cli/commands/groups/show.rb
brightbox-cli-4.8.0 lib/brightbox-cli/commands/groups/show.rb
brightbox-cli-4.7.0 lib/brightbox-cli/commands/groups/show.rb
brightbox-cli-4.6.0 lib/brightbox-cli/commands/groups/show.rb
brightbox-cli-4.5.0 lib/brightbox-cli/commands/groups/show.rb
brightbox-cli-4.5.0.rc1 lib/brightbox-cli/commands/groups/show.rb
brightbox-cli-4.4.0 lib/brightbox-cli/commands/groups/show.rb
brightbox-cli-4.3.2 lib/brightbox-cli/commands/groups/show.rb
brightbox-cli-4.3.1 lib/brightbox-cli/commands/groups/show.rb
brightbox-cli-4.3.0 lib/brightbox-cli/commands/groups/show.rb
brightbox-cli-4.2.1 lib/brightbox-cli/commands/groups/show.rb
brightbox-cli-4.2.0 lib/brightbox-cli/commands/groups/show.rb
brightbox-cli-4.1.0 lib/brightbox-cli/commands/groups/show.rb
brightbox-cli-4.0.0 lib/brightbox-cli/commands/groups/show.rb
brightbox-cli-4.0.0.rc2 lib/brightbox-cli/commands/groups/show.rb