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