diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-01-17 13:34:18 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-01-17 13:34:18 -0800 |
commit | 746562d6358c27b838c95ea27b2a2bd82c03cefe (patch) | |
tree | baa587f091d06c1385543bbde818970e5fee7b75 /lib/chef/data_bag_item.rb | |
parent | fcd8d778baeeb990a64fe9042164bbd3e1dd5269 (diff) | |
download | chef-746562d6358c27b838c95ea27b2a2bd82c03cefe.tar.gz |
prepping for rubocop 0.52.1lcg/rubocop-0.52.1
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/data_bag_item.rb')
-rw-r--r-- | lib/chef/data_bag_item.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/chef/data_bag_item.rb b/lib/chef/data_bag_item.rb index d0fca26125..388da78dad 100644 --- a/lib/chef/data_bag_item.rb +++ b/lib/chef/data_bag_item.rb @@ -2,7 +2,7 @@ # Author:: Adam Jacob (<adam@chef.io>) # Author:: Nuo Yan (<nuo@chef.io>) # Author:: Christopher Brown (<cb@chef.io>) -# Copyright:: Copyright 2009-2016, Chef Software, Inc. +# Copyright:: Copyright 2009-2018, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -38,8 +38,6 @@ class Chef VALID_ID = /^[\.\-[:alnum:]_]+$/ - attr_accessor :chef_server_rest - def self.validate_id!(id_str) if id_str.nil? || ( id_str !~ VALID_ID ) raise Exceptions::InvalidDataBagItemID, "Data Bag items must have an id matching #{VALID_ID.inspect}, you gave: #{id_str.inspect}" @@ -66,10 +64,6 @@ class Chef Chef::ServerAPI.new(Chef::Config[:chef_server_url]) end - def raw_data - @raw_data - end - def validate_id!(id_str) self.class.validate_id!(id_str) end |