class Chef::Knife::SoftlayerKeyPairList
Public Instance Methods
run()
click to toggle source
# File lib/chef/knife/softlayer_key_pair_list.rb, line 18 def run $stdout.sync = true table_data = connection(:compute).key_pairs.map do |kp| {:id => kp.id, :label => kp.label, :create_date => kp.create_date, :modify_date => kp.modify_date } end puts Formatador.display_table(table_data, [:id, :label, :create_date, :modify_date]) end