Skip to content

Commit

Permalink
Expose LWRP state attributes (state_attrs)
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Goodman committed Nov 12, 2013
1 parent ec267f9 commit 32c0a25
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions resources/pear.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions resources/pear_channel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 32c0a25

Please sign in to comment.