summaryrefslogtreecommitdiff
path: root/lib/chef/provider/mount/mount.rb
diff options
context:
space:
mode:
authorantima-gupta <agupta@msystechnologies.com>2020-10-28 17:32:29 +0530
committerantima-gupta <agupta@msystechnologies.com>2020-10-28 17:32:29 +0530
commit7fe69a2a865e24314540e2c8a9c0d28375b22eed (patch)
tree4d23df7aeb6bd0f70b795edfea5818db1140d3fc /lib/chef/provider/mount/mount.rb
parenta8ead1a6bbbbda2eae75bc1fdc4c9858d15c81cb (diff)
downloadchef-7fe69a2a865e24314540e2c8a9c0d28375b22eed.tar.gz
Moved device_fstab method from provider/mount/mount.rb to provider/mount.rb.
Compare current resource device with new resource device_fstab value. Added specs for device_unchaged? method changes. Signed-off-by: antima-gupta <agupta@msystechnologies.com>
Diffstat (limited to 'lib/chef/provider/mount/mount.rb')
-rw-r--r--lib/chef/provider/mount/mount.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/chef/provider/mount/mount.rb b/lib/chef/provider/mount/mount.rb
index e3aa7e6d1c..f6a7519c06 100644
--- a/lib/chef/provider/mount/mount.rb
+++ b/lib/chef/provider/mount/mount.rb
@@ -212,17 +212,6 @@ class Chef
private
- def device_fstab
- case @new_resource.device_type
- when :device
- @new_resource.device
- when :label
- "LABEL=#{@new_resource.device}"
- when :uuid
- "UUID=#{@new_resource.device}"
- end
- end
-
def device_real
if @real_device.nil?
if @new_resource.device_type == :device