Class: KnifeTopo::TopoList

Inherits:
Chef::Knife
  • Object
show all
Includes:
Loader
Defined in:
lib/chef/knife/topo_list.rb

Overview

knife topo list

Instance Attribute Summary

Attributes included from Loader

#loader, #ui

Instance Method Summary collapse

Methods included from Loader

#auto_detect_format, #check_file, #create_topo_bag, #get_local_topo_path, #list_topo_bag, #load_local_topo_or_exit, #load_node_data, #load_topo_from_file_or_exit, #load_topo_from_server, #load_topo_from_server_or_exit, #priority_attrs, #topo_bag_name, #topologies_path

Instance Method Details

#runObject



39
40
41
42
43
# File 'lib/chef/knife/topo_list.rb', line 39

def run
  output(format_list_for_display(list_topo_bag))
rescue Net::HTTPServerException => e
  raise unless e.to_s =~ /^404/
end