Class: Chef::Knife::HmcImageList
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- Chef::Knife::HmcImageList
- Includes:
- HmcBase
- Defined in:
- lib/chef/knife/hmc_image_list.rb
Instance Method Summary collapse
Methods included from HmcBase
#get_config, included, #tcp_ssh_alive, #validate, #validate!
Instance Method Details
#run ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/chef/knife/hmc_image_list.rb', line 36 def run Chef::Log.debug("Listing images...") validate!([:nim_host,:nim_user,:nim_pass]) nim = Nim.new(get_config(:nim_host),get_config(:nim_user),{:password => get_config(:nim_pass)}) nim.connect puts "Mksysb Image Names: " nim.list_images.each do |image_name| puts "#{image_name}" end nim.disconnect end |