Sha256: 90038cc355ed78030c3114fa8cc237454463bdceef1d388f26803057e4cc2ccd

Contents?: true

Size: 339 Bytes

Versions: 7

Compression:

Stored size: 339 Bytes

Contents

desc 'List CloudIPs'
arg_name '[cloudip-id...]'
command [:list] do |c|

  c.action do |global_options,options,args|

    if args.empty?
      ips = CloudIP.find(:all)
    else
      ips = CloudIP.find_or_call(args) do |id|
        warn "Couldn't find cloud ip #{id}"
      end
    end

    render_table(ips.sort, global_options)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bbcloud-0.11.2 lib/bbcloud/commands/cloudips-list.rb
bbcloud-0.11.1 lib/bbcloud/commands/cloudips-list.rb
bbcloud-0.11.0 lib/bbcloud/commands/cloudips-list.rb
bbcloud-0.10.1 lib/bbcloud/commands/cloudips-list.rb
bbcloud-0.9.2 lib/bbcloud/commands/cloudips-list.rb
bbcloud-0.9.1 lib/bbcloud/commands/cloudips-list.rb
bbcloud-0.9 lib/bbcloud/commands/cloudips-list.rb