Method: Chef::Knife::CookbookMetadata#run

Defined in:
lib/chef/knife/cookbook_metadata.rb

#runObject



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/chef/knife/cookbook_metadata.rb', line 39

def run 
  if config[:cookbook_path]
    Chef::Config[:cookbook_path] = config[:cookbook_path]
  else
    config[:cookbook_path] = Chef::Config[:cookbook_path]
  end

  if config[:all] 
    cl = Chef::CookbookLoader.new
    cl.each do |cookbook|
      (cookbook.name.to_s)
    end
  else
    (@name_args[0]) 
  end
end