Class: CivoCLI::Size
- Inherits:
-
Thor
- Object
- Thor
- CivoCLI::Size
- Defined in:
- lib/size.rb
Instance Method Summary collapse
Instance Method Details
#list ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/size.rb', line 4 def list CivoCLI::Config.set_api_auth rows = [] Civo::Size.all.items.select{|s| s.selectable }.each do |size| rows << [size.name, size.description, size.cpu_cores, size.ram_mb, size.disk_gb] end puts Terminal::Table.new headings: ['Name', 'Description', 'CPU', 'RAM (MB)', 'Disk (GB)'], rows: rows end |