summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-05-04 13:19:33 -0700
committerTim Smith <tsmith@chef.io>2017-05-12 09:29:33 -0700
commitfbe467134db1339f429950503874e2bbd947bf54 (patch)
tree0f5ab0fbc5da4cffe6416d62c1424ffc0a5832cb
parent8a96c8b3546189544e9f7fd2cc5106a7628ee54a (diff)
downloadchef-fbe467134db1339f429950503874e2bbd947bf54.tar.gz
Make sure the helpers are in the right class
These ended up in Provider by accident Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/provider/apt_preference.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/chef/provider/apt_preference.rb b/lib/chef/provider/apt_preference.rb
index 669ce8f79e..d3958ea6fa 100644
--- a/lib/chef/provider/apt_preference.rb
+++ b/lib/chef/provider/apt_preference.rb
@@ -83,15 +83,15 @@ class Chef
end
end
end
- end
- # Build preferences.d file contents
- def build_pref(package_name, pin, pin_priority)
- "Package: #{package_name}\nPin: #{pin}\nPin-Priority: #{pin_priority}\n"
- end
+ # Build preferences.d file contents
+ def build_pref(package_name, pin, pin_priority)
+ "Package: #{package_name}\nPin: #{pin}\nPin-Priority: #{pin_priority}\n"
+ end
- def safe_name(name)
- name.tr(".", "_").gsub("*", "wildcard")
+ def safe_name(name)
+ name.tr(".", "_").gsub("*", "wildcard")
+ end
end
end
end