summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-04-25 09:38:10 -0700
committerTim Smith <tsmith84@gmail.com>2020-04-25 09:38:10 -0700
commitfaa61371fe5129037c48d889371245092cc0ccf5 (patch)
tree4a888f5d383588ff7b8d398beb488fcbe689607f
parentc9cf725ebe0ef731f32a96f4bf4114a5b97548b7 (diff)
downloadchef-constants.tar.gz
Avoid constant warnings in specsconstants
We get a bunch of constant warnings when running the specs. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/knife/cookbook_upload.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/knife/cookbook_upload.rb b/lib/chef/knife/cookbook_upload.rb
index 1e5965f885..3853dd6ffb 100644
--- a/lib/chef/knife/cookbook_upload.rb
+++ b/lib/chef/knife/cookbook_upload.rb
@@ -23,8 +23,8 @@ require_relative "../knife"
class Chef
class Knife
class CookbookUpload < Knife
- CHECKSUM = "checksum".freeze
- MATCH_CHECKSUM = /[0-9a-f]{32,}/.freeze
+ CHECKSUM ||= "checksum".freeze
+ MATCH_CHECKSUM ||= /[0-9a-f]{32,}/.freeze
deps do
require_relative "../mixin/file_class"