summaryrefslogtreecommitdiff
path: root/lib/chef/resource/http_request.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/http_request.rb')
-rw-r--r--lib/chef/resource/http_request.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/chef/resource/http_request.rb b/lib/chef/resource/http_request.rb
index ea22a26456..192484f557 100644
--- a/lib/chef/resource/http_request.rb
+++ b/lib/chef/resource/http_request.rb
@@ -27,13 +27,14 @@ class Chef
identity_attr :url
+ default_action :get
+ allowed_actions :get, :put, :post, :delete, :head, :options
+
def initialize(name, run_context=nil)
super
@message = name
@url = nil
- @action = :get
@headers = {}
- @allowed_actions.push(:get, :put, :post, :delete, :head, :options)
end
def url(args=nil)