Skip to content

Commit

Permalink
Merge pull request sous-chefs#49 from 0x00B1/master
Browse files Browse the repository at this point in the history
Expose LWRP state attributes (`state_attrs`)
  • Loading branch information
tas50 committed Aug 22, 2015
2 parents 745759c + 32c0a25 commit 534a704
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 534a704

Please sign in to comment.