Sha256: 7566e5186e59e362b76772ed00f771f4bd53f2e86b7106287cbf4fd90c48f4ed

Contents?: true

Size: 550 Bytes

Versions: 12

Compression:

Stored size: 550 Bytes

Contents

module Brightbox
  desc 'show details on Cloud IPs'
  arg_name 'cloudip-id...'
  command [:show] do |c|

    c.action do |global_options,options,args|

      if args.empty?
        raise "You must specify the cloud ips you want to show"
      end

      ips = CloudIP.find_or_call(args) do |id|
        warn "Couldn't find cloud ip #{id}"
      end

      fields = [:id, :status, :public_ip, :reverse_dns, :destination, :interface_id]

      render_table(ips.compact, global_options.merge({ :vertical => true, :fields => fields}))
    end
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
brightbox-cli-0.17.5 lib/brightbox-cli/commands/cloudips-show.rb
brightbox-cli-0.17.4 lib/brightbox-cli/commands/cloudips-show.rb
brightbox-cli-0.17.3 lib/brightbox-cli/commands/cloudips-show.rb
brightbox-cli-0.17.2 lib/brightbox-cli/commands/cloudips-show.rb
brightbox-cli-0.17.1 lib/brightbox-cli/commands/cloudips-show.rb
brightbox-cli-0.17.0 lib/brightbox-cli/commands/cloudips-show.rb
brightbox-cli-0.16.0 lib/brightbox-cli/commands/cloudips-show.rb
brightbox-cli-0.15.0 lib/brightbox-cli/commands/cloudips-show.rb
brightbox-cli-0.14.1 lib/brightbox-cli/commands/cloudips-show.rb
brightbox-cli-0.14.0 lib/brightbox-cli/commands/cloudips-show.rb
brightbox-cli-0.13.1 lib/brightbox-cli/commands/cloudips-show.rb
brightbox-cli-0.13.0 lib/brightbox-cli/commands/cloudips-show.rb