- def configure_repo_paths
- # Smooth out some (for now) inappropriate defaults set by Chef
-- if @chef_config[:cookbook_path] == [ @chef_config.platform_specific_path("/var/chef/cookbooks"),
-- @chef_config.platform_specific_path("/var/chef/site-cookbooks") ]
-+ if @chef_config[:cookbook_path] == [ @chef_config.platform_specific_path("/var/lib/chef/cookbooks"),
-+ @chef_config.platform_specific_path("/var/lib/chef/site-cookbooks") ]
- @chef_config[:cookbook_path] = nil
- end
-- if @chef_config[:data_bag_path] == @chef_config.platform_specific_path('/var/chef/data_bags')
-+ if @chef_config[:data_bag_path] == @chef_config.platform_specific_path('/var/lib/chef/data_bags')
- @chef_config[:data_bag_path] = nil
- end
-- if @chef_config[:node_path] == '/var/chef/node'
-+ if @chef_config[:node_path] == '/var/lib/chef/node'
- @chef_config[:node_path] = nil
- end
-- if @chef_config[:role_path] == @chef_config.platform_specific_path('/var/chef/roles')
-+ if @chef_config[:role_path] == @chef_config.platform_specific_path('/var/lib/chef/roles')
- @chef_config[:role_path] = nil
- end
+ def initialize(config={})
+ @config = config
+- @config[:path] ||= "/var/chef/reports"
++ @config[:path] ||= "/var/lib/chef/reports"
+ @config
+ end