Methods

Files

Class/Module Index [+]

Quicksearch

Chef::Knife::Diff

Public Instance Methods

run() click to toggle source
# File lib/chef/knife/diff.rb, line 27
def run
  if config[:name_only]
    output_mode = :name_only
  end
  if config[:name_status]
    output_mode = :name_status
  end
  patterns = pattern_args_from(name_args.length > 0 ? name_args : [ "" ])

  # Get the matches (recursively)
  patterns.each do |pattern|
    Chef::ChefFS::CommandLine.diff(pattern, chef_fs, local_fs, config[:recurse] ? nil : 1, output_mode) do |diff|
      puts diff
    end
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.