Sha256: 6d3f9035dbda9d5ecd03f187312781594f58650bb9bb4c4aad884e1c7c05ed05

Contents?: true

Size: 544 Bytes

Versions: 3

Compression:

Stored size: 544 Bytes

Contents

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, :server_id, :interface_id]

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bbcloud-0.9.2 lib/bbcloud/commands/cloudips-show.rb
bbcloud-0.9.1 lib/bbcloud/commands/cloudips-show.rb
bbcloud-0.9 lib/bbcloud/commands/cloudips-show.rb