Sha256: 82f198b75b8b16e60abd8324c0444f4fd2ea1f1372fd3310e1a451a9ec2e25c3

Contents?: true

Size: 438 Bytes

Versions: 5

Compression:

Stored size: 438 Bytes

Contents

desc 'Show detailed type info'
arg_name 'type-id...'
command [:show] do |c|

  c.action do |global_options,options,args|
    
    types = Type.find(args)
    rows = []
    types.each do |t|
      next if t.nil?
      rows << t
    end

    table_opts = global_options.merge({
      :vertical => true,
      :fields => [:id, :handle, :status, :name, :ram, :disk, :cores, :description]
    })

    render_table(rows, table_opts)

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bbcloud-0.8.2 lib/bbcloud/commands/types-show.rb
bbcloud-0.8.1 lib/bbcloud/commands/types-show.rb
bbcloud-0.8 lib/bbcloud/commands/types-show.rb
bbcloud-0.7 lib/bbcloud/commands/types-show.rb
bbcloud-0.6.2 lib/bbcloud/commands/types-show.rb