Sha256: 70ec08f4d3a9e37d393b822ed10cbd2d8ffd77db3b7d96206991cc95dcc758e9
Contents?: true
Size: 600 Bytes
Versions: 4
Compression:
Stored size: 600 Bytes
Contents
module Brightbox command [:groups] do |cmd| cmd.desc "Destroy server groups" cmd.arg_name "grp-id..." # todo: add option to remove all servers from group before destroying cmd.command [:destroy] do |c| c.action do |global_options, options, args| raise "You must specify the server groups to destroy" if args.empty? sgs = ServerGroup.find_or_call(args) do |id| raise "Couldn't find server group #{id}" end sgs.each do |sg| info "Destroying server group #{sg}" sg.destroy end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems