Class: Chef::Knife::ClodoImageList
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- Chef::Knife::ClodoImageList
- Includes:
- ClodoBase
- Defined in:
- lib/chef/knife/clodo_image_list.rb
Instance Method Summary collapse
Methods included from ClodoBase
#connection, included, #locate_config_value
Instance Method Details
#run ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/chef/knife/clodo_image_list.rb', line 11 def run $stdout.sync = true image_list = [ ui.color('ID', :bold), ui.color('Name', :bold), ui.color('Type', :bold) ] connection.images.each do |image| image_list << image.id.to_s image_list << image.name image_list << image.vps_type end puts ui.list(image_list, :columns_across, 3) end |