From 32c0a258b17067733ab24c7b649ff7457e666a15 Mon Sep 17 00:00:00 2001 From: Allen Goodman Date: Tue, 12 Nov 2013 11:11:02 -0800 Subject: [PATCH] Expose LWRP state attributes (`state_attrs`) --- resources/pear.rb | 8 ++++++++ resources/pear_channel.rb | 3 +++ 2 files changed, 11 insertions(+) diff --git a/resources/pear.rb b/resources/pear.rb index be43a91fa..3feca6496 100644 --- a/resources/pear.rb +++ b/resources/pear.rb @@ -21,6 +21,14 @@ default_action :install actions :install, :upgrade, :remove, :purge +state_attrs :channel, + :directives, + :options, + :package_name, + :preferred_state, + :version, + :zend_extensions + attribute :package_name, :kind_of => String, :name_attribute => true attribute :version, :default => nil attribute :channel, :kind_of => String diff --git a/resources/pear_channel.rb b/resources/pear_channel.rb index 94fc53d8f..ebaad57b6 100644 --- a/resources/pear_channel.rb +++ b/resources/pear_channel.rb @@ -21,6 +21,9 @@ default_action :discover actions :discover, :add, :update, :remove +state_attrs :channel_name, + :channel_xml + attribute :channel_name, :kind_of => String, :name_attribute => true attribute :channel_xml, :kind_of => String