Class: Chef::Knife::NinefoldFlavorList
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- Chef::Knife::NinefoldFlavorList
- Includes:
- NinefoldBase
- Defined in:
- lib/chef/knife/ninefold_flavor_list.rb
Instance Method Summary collapse
Methods included from NinefoldBase
#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/ninefold_flavor_list.rb', line 11 def run $stdout.sync = true flavor_list = [ ui.color('ID', :bold), ui.color('Name', :bold), ui.color('Description', :bold) ] connection.flavors.all.each do |flavor| flavor_list << flavor.identity.to_s flavor_list << flavor.name flavor_list << flavor.displaytext end puts ui.list(flavor_list, :columns_across, 3) end |