module Poise::Helpers::LWRPPolyfill::Resource
Provide default_action and actions like LWRPBase but better equipped for subclassing.
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
# File lib/poise/helpers/lwrp_polyfill.rb, line 33 def initialize(*args) super # Try to not stomp on stuff if already set in a parent. Coerce @action # to an array because this behavior may change in the future in Chef. @action = self.class.default_action if Array(@action) == [:nothing] (@allowed_actions << self.class.actions).flatten!.uniq! end