diff options
author | Adam Jacob <adam@hjksolutions.com> | 2009-01-10 14:57:21 -0800 |
---|---|---|
committer | Adam Jacob <adam@hjksolutions.com> | 2009-01-10 14:57:21 -0800 |
commit | f81d8ff4332f69b9ce7340cdcb7b475ba42832a3 (patch) | |
tree | 6a802677f36a393d6f9dd8c8e0fe320bd049f4dd /example-repository | |
parent | e0b005ea17531fe1e63d13b72145d770640545e3 (diff) | |
download | chef-f81d8ff4332f69b9ce7340cdcb7b475ba42832a3.tar.gz |
Resources of the same name now inherit the attributes of the prior resource - see CHEF-26
Diffstat (limited to 'example-repository')
-rw-r--r-- | example-repository/cookbooks/prior_resource_test/recipes/default.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/example-repository/cookbooks/prior_resource_test/recipes/default.rb b/example-repository/cookbooks/prior_resource_test/recipes/default.rb new file mode 100644 index 0000000000..17c43db6a4 --- /dev/null +++ b/example-repository/cookbooks/prior_resource_test/recipes/default.rb @@ -0,0 +1,27 @@ +# +# Cookbook Name:: prior_resource_test +# Recipe:: default +# +# Copyright 2009, Example Com +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +file "/tmp/prior_resource_test" do + backup 16 + action :create +end + +file "/tmp/prior_resource_test" do + action :delete +end |