summaryrefslogtreecommitdiff
path: root/lib/chef/resource/mount.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/mount.rb')
-rw-r--r--lib/chef/resource/mount.rb48
1 files changed, 24 insertions, 24 deletions
diff --git a/lib/chef/resource/mount.rb b/lib/chef/resource/mount.rb
index 586aa6e375..b800387975 100644
--- a/lib/chef/resource/mount.rb
+++ b/lib/chef/resource/mount.rb
@@ -29,13 +29,13 @@ class Chef
# this is a poor API please do not re-use this pattern
property :supports, [Array, Hash],
- description: "Specify a Hash of supported mount features.",
- default: lazy { { remount: false } },
- coerce: proc { |x| x.is_a?(Array) ? x.each_with_object({}) { |i, m| m[i] = true } : x }
+ description: "Specify a Hash of supported mount features.",
+ default: lazy { { remount: false } },
+ coerce: proc { |x| x.is_a?(Array) ? x.each_with_object({}) { |i, m| m[i] = true } : x }
property :password, String,
- description: "Windows only:. Use to specify the password for username.",
- sensitive: true
+ description: "Windows only:. Use to specify the password for username.",
+ sensitive: true
property :mount_point, String, name_property: true,
description: "The directory (or path) in which the device is to be mounted. Defaults to the name of the resource block if not provided."
@@ -44,44 +44,44 @@ class Chef
description: "Required for :umount and :remount actions (for the purpose of checking the mount command output for presence). The special block device or remote node, a label, or a uuid to be mounted."
property :device_type, [String, Symbol],
- description: "The type of device: :device, :label, or :uuid",
- coerce: proc { |arg| arg.kind_of?(String) ? arg.to_sym : arg },
- default: :device,
- equal_to: RUBY_PLATFORM =~ /solaris/i ? %i{ device } : %i{ device label uuid }
+ description: "The type of device: :device, :label, or :uuid",
+ coerce: proc { |arg| arg.kind_of?(String) ? arg.to_sym : arg },
+ default: :device,
+ equal_to: RUBY_PLATFORM =~ /solaris/i ? %i{ device } : %i{ device label uuid }
# @todo this should get refactored away: https://github.com/chef/chef/issues/7621
property :mounted, [TrueClass, FalseClass], default: false, skip_docs: true
property :fsck_device, String,
- description: "Solaris only: The fsck device.",
- default: "-"
+ description: "Solaris only: The fsck device.",
+ default: "-"
property :fstype, [String, nil],
- description: "The file system type (fstype) of the device.",
- default: "auto"
+ description: "The file system type (fstype) of the device.",
+ default: "auto"
property :options, [Array, String, nil],
- description: "An array or comma separated list of options for the mount.",
- coerce: proc { |arg| arg.kind_of?(String) ? arg.split(",") : arg },
- default: %w{defaults}
+ description: "An array or comma separated list of options for the mount.",
+ coerce: proc { |arg| arg.kind_of?(String) ? arg.split(",") : arg },
+ default: %w{defaults}
property :dump, [Integer, FalseClass],
- description: "The dump frequency (in days) used while creating a file systems table (fstab) entry.",
- default: 0
+ description: "The dump frequency (in days) used while creating a file systems table (fstab) entry.",
+ default: 0
property :pass, [Integer, FalseClass],
- description: "The pass number used by the file system check (fsck) command while creating a file systems table (fstab) entry.",
- default: 2
+ description: "The pass number used by the file system check (fsck) command while creating a file systems table (fstab) entry.",
+ default: 2
property :enabled, [TrueClass, FalseClass],
- description: "Use to specify if a mounted file system is enabled.",
- default: false
+ description: "Use to specify if a mounted file system is enabled.",
+ default: false
property :username, String,
- description: "Windows only: Use to specify the user name."
+ description: "Windows only: Use to specify the user name."
property :domain, String,
- description: "Windows only: Use to specify the domain in which the username and password are located."
+ description: "Windows only: Use to specify the domain in which the username and password are located."
private