summaryrefslogtreecommitdiff
path: root/lib-backcompat/chef
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2016-04-14 15:15:22 +0100
committerThom May <thom@chef.io>2016-04-14 15:54:12 +0100
commit2d48106e6c6afa454ea7c7974de124e977b56112 (patch)
treef80228db1af5a51d6c0a5bbe87d09ff237b0d257 /lib-backcompat/chef
parent2fe975c69a1abd8536e9f0158cb85d45f8c2f54b (diff)
downloadchef-2d48106e6c6afa454ea7c7974de124e977b56112.tar.gz
Move unused code into backcompat
Diffstat (limited to 'lib-backcompat/chef')
-rw-r--r--lib-backcompat/chef/chef_fs/file_system/repository/file_system_root_dir.rb34
1 files changed, 34 insertions, 0 deletions
diff --git a/lib-backcompat/chef/chef_fs/file_system/repository/file_system_root_dir.rb b/lib-backcompat/chef/chef_fs/file_system/repository/file_system_root_dir.rb
new file mode 100644
index 0000000000..8565ee6029
--- /dev/null
+++ b/lib-backcompat/chef/chef_fs/file_system/repository/file_system_root_dir.rb
@@ -0,0 +1,34 @@
+#
+# Author:: John Keiser (<jkeiser@chef.io>)
+# Copyright:: Copyright 2012-2016, Chef Software Inc.
+# License:: Apache License, Version 2.0
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+require "chef/chef_fs/file_system/repository/file_system_entry"
+
+class Chef
+ module ChefFS
+ module FileSystem
+ module Repository
+ class FileSystemRootDir < FileSystemEntry
+ def initialize(file_path)
+ Chef.log_deprecation "Chef::ChefFS::FileSystem::Repository::FileSystemRootDir is deprecated."
+ super("", nil, file_path)
+ end
+ end
+ end
+ end
+ end
+end