summaryrefslogtreecommitdiff
path: root/lib/chef/resource/apt_update.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2017-03-30 12:24:56 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2017-03-30 12:24:56 -0700
commitde209e6ee12939f641ec0ed002c2d3506abaafe7 (patch)
tree0a6b37f0519a71444250c5ffd84d3df89649228d /lib/chef/resource/apt_update.rb
parent5584126a725ab72c24ea610328f56a905986295b (diff)
downloadchef-de209e6ee12939f641ec0ed002c2d3506abaafe7.tar.gz
make nameless properties opt-in
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/resource/apt_update.rb')
-rw-r--r--lib/chef/resource/apt_update.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/resource/apt_update.rb b/lib/chef/resource/apt_update.rb
index 1a25ec2ef5..67ca7fbfea 100644
--- a/lib/chef/resource/apt_update.rb
+++ b/lib/chef/resource/apt_update.rb
@@ -1,6 +1,6 @@
#
# Author:: Thom May (<thom@chef.io>)
-# Copyright:: Copyright (c) 2016 Chef Software, Inc.
+# Copyright:: Copyright (c) 2016-2017, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -24,6 +24,8 @@ class Chef
resource_name :apt_update
provides :apt_update
+ # allow bare apt_update with no name
+ property :name, String, default: ""
property :frequency, Integer, default: 86_400
default_action :periodic