diff options
author | Seth Vargo <sethvargo@gmail.com> | 2014-07-18 13:59:49 -0500 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-07-18 12:01:12 -0700 |
commit | 4aec038d42eae5c3c3bac50aa211d2b69cf54019 (patch) | |
tree | 4e227fd013062502777334d951677e9a473bd21e /lib/chef/resource | |
parent | c7d91cc2425e0060b33cfdb2d1b5fad3f9d4a5da (diff) | |
download | chef-4aec038d42eae5c3c3bac50aa211d2b69cf54019.tar.gz |
Remove appending :actions and :valid_actions
Diffstat (limited to 'lib/chef/resource')
-rw-r--r-- | lib/chef/resource/lwrp_base.rb | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/chef/resource/lwrp_base.rb b/lib/chef/resource/lwrp_base.rb index e173eb09cc..b293b85944 100644 --- a/lib/chef/resource/lwrp_base.rb +++ b/lib/chef/resource/lwrp_base.rb @@ -105,21 +105,10 @@ class Chef if action_names.empty? defined?(@actions) ? @actions : from_superclass(:actions, []).dup else - # BC-compat way for checking if actions have already been defined - if defined?(@actions) - @actions.push(*action_names) - else - @actions = action_names - end + @actions = action_names end end - # @deprecated - def self.valid_actions(*args) - Chef::Log.warn("`valid_actions' is deprecated, please use actions `instead'!") - actions(*args) - end - # Set the run context on the class. Used to provide access to the node # during class definition. def self.run_context=(run_context) |