diff options
author | Chris Walters <cw@opscode.com> | 2010-01-04 18:56:07 +0000 |
---|---|---|
committer | Adam Jacob <adam@opscode.com> | 2010-01-04 17:07:49 -0800 |
commit | e4b741ddec40ad152ba5f11c2132a38dd106210e (patch) | |
tree | eb4e4936e0d40da2b1aad4cc476832bdce296c66 /features/data/cookbooks/lwrp | |
parent | 0e9e13f73048a689d3efc7166ec7b15ed16896e2 (diff) | |
download | chef-e4b741ddec40ad152ba5f11c2132a38dd106210e.tar.gz |
CHEF-734: Resources without an explicitly set provider try to choose one of the same name if possible
Diffstat (limited to 'features/data/cookbooks/lwrp')
4 files changed, 7 insertions, 2 deletions
diff --git a/features/data/cookbooks/lwrp/providers/provider_is_omitted.rb b/features/data/cookbooks/lwrp/providers/provider_is_omitted.rb new file mode 100644 index 0000000000..8c512e0f1e --- /dev/null +++ b/features/data/cookbooks/lwrp/providers/provider_is_omitted.rb @@ -0,0 +1,3 @@ +action :print_classes do + puts "P=#{self.class}, R=#{new_resource.class}" +end diff --git a/features/data/cookbooks/lwrp/recipes/default_everything.rb b/features/data/cookbooks/lwrp/recipes/default_everything.rb index 9d00aeb744..9125f0f90e 100644 --- a/features/data/cookbooks/lwrp/recipes/default_everything.rb +++ b/features/data/cookbooks/lwrp/recipes/default_everything.rb @@ -1,6 +1,4 @@ lwrp :default do message "Default everything" action :print_message - - provider Chef::Provider::Lwrp end diff --git a/features/data/cookbooks/lwrp/recipes/provider_is_omitted.rb b/features/data/cookbooks/lwrp/recipes/provider_is_omitted.rb new file mode 100644 index 0000000000..89a15b385e --- /dev/null +++ b/features/data/cookbooks/lwrp/recipes/provider_is_omitted.rb @@ -0,0 +1,3 @@ +lwrp_provider_is_omitted :provider_is_omitted do + action :print_classes +end diff --git a/features/data/cookbooks/lwrp/resources/provider_is_omitted.rb b/features/data/cookbooks/lwrp/resources/provider_is_omitted.rb new file mode 100644 index 0000000000..564537e6bf --- /dev/null +++ b/features/data/cookbooks/lwrp/resources/provider_is_omitted.rb @@ -0,0 +1 @@ +actions :print_classes |