Sha256: 56804352bf89fac0b5af174f6b3e79c4396b242e77b8e1929c4a731c8d383f79

Contents?: true

Size: 388 Bytes

Versions: 14

Compression:

Stored size: 388 Bytes

Contents

module Brightbox
  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
end

Version data entries

14 entries across 14 versions & 2 rubygems

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