diff options
author | Jamie Winsor <jamie@vialstudios.com> | 2012-01-11 01:29:34 -0800 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2012-02-09 11:42:12 -0800 |
commit | 157d39cab6ba6ff96dc73b0d21abc9c00daade6d (patch) | |
tree | b7ea5f015897f80672ae9d39b95d125d9adb90c5 | |
parent | 7bcf3c0672a922b6a997de06abc5a73f77ccd5cd (diff) | |
download | chef-157d39cab6ba6ff96dc73b0d21abc9c00daade6d.tar.gz |
assign default value for Config::Chef[:data_bag_path]
-rw-r--r-- | chef/lib/chef/config.rb | 2 | ||||
-rw-r--r-- | chef/spec/unit/config_spec.rb | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/chef/lib/chef/config.rb b/chef/lib/chef/config.rb index 3539ffe3a8..7b71b017d5 100644 --- a/chef/lib/chef/config.rb +++ b/chef/lib/chef/config.rb @@ -197,6 +197,8 @@ class Chef # Where should chef-solo look for role files? role_path platform_specific_path("/var/chef/roles") + data_bag_path platform_specific_path("/var/chef/data_bags") + # Where should chef-solo download recipes from? recipe_url nil diff --git a/chef/spec/unit/config_spec.rb b/chef/spec/unit/config_spec.rb index cdff869480..0d42ed6323 100644 --- a/chef/spec/unit/config_spec.rb +++ b/chef/spec/unit/config_spec.rb @@ -159,5 +159,9 @@ describe Chef::Config do it "Chef::Config[:ssl_ca_file] defaults to nil" do Chef::Config[:ssl_ca_file].should be_nil end + + it "Chef::Config[:data_bag_path] defaults to /var/chef/data_bags" do + Chef::Config[:data_bag_path].should == "/var/chef/data_bags" + end end end |