rule "FC071", "Missing LICENSE file" do
  tags %w{style license}
  cookbook do |path|
    unless ::File.exist?(::File.join(path, "metadata.rb")) && field_value(read_ast(::File.join(path, "metadata.rb")), "license").to_s.casecmp("All Rights Reserved") == 0
      ensure_file_exists(path, "LICENSE")
    end
  end
end

rule "FC071", "Missing LICENSE file" do
  tags %w{style license opensource}
  cookbook do |path|
    unless ::File.exist?(::File.join(path, "metadata.rb")) && field_value(read_ast(::File.join(path, "metadata.rb")), "license").to_s.casecmp("All Rights Reserved") == 0
      ensure_file_exists(path, "LICENSE")
    end
  end
end

Add opensource tag to FC071
Add opensource tag to FC071

If you're not opensource you really don't care about this rule.

Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
