Class: Chef::Knife::SoftlayerKeyPairList
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- Chef::Knife::SoftlayerKeyPairList
- Includes:
- SoftlayerBase
- Defined in:
- lib/chef/knife/softlayer_key_pair_list.rb
Constant Summary
Constants included from SoftlayerBase
Chef::Knife::SoftlayerBase::USER_AGENT
Instance Method Summary collapse
Methods included from SoftlayerBase
#compute, #connection, included, #locate_config_value, #msg_pair, #network
Instance Method Details
#run ⇒ Object
18 19 20 21 22 23 24 |
# 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 |