# File lib/chef/knife/show.rb, line 11 def run # Get the matches (recursively) pattern_args.each do |pattern| Chef::ChefFS::FileSystem.list(chef_fs, pattern) do |result| if result.dir? STDERR.puts "#{result.path_for_printing}: is a directory" if pattern.exact_path else begin value = result.read puts "#{result.path_for_printing}:" output(format_for_display(value)) rescue Chef::ChefFS::FileSystem::NotFoundError STDERR.puts "#{result.path_for_printing}: No such file or directory" end end end end end
Generated with the Darkfish Rdoc Generator 2.