summaryrefslogtreecommitdiff
path: root/lib/chef/resource/mdadm.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-07-02 11:11:35 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-07-02 11:13:54 -0700
commit77f8739a4741e2370e40ec39345a92a6ea393a1a (patch)
treebcf3c9a12556ce1fd18a83cd5f68cd24d36a1180 /lib/chef/resource/mdadm.rb
parent90a74a80196725c4198b6042e8485d68c70777ac (diff)
downloadchef-77f8739a4741e2370e40ec39345a92a6ea393a1a.tar.gz
fix Layout/AlignArgumentslcg/new-chefstyle
this is using: Layout/AlignArguments: Enabled: true EnforcedStyle: with_fixed_indentation the default style can use really excessive whitespace. on starting lines which are already long, it fully indents across to where the arguments start and then begins the line there. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/resource/mdadm.rb')
-rw-r--r--lib/chef/resource/mdadm.rb28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/chef/resource/mdadm.rb b/lib/chef/resource/mdadm.rb
index 1cec1d598e..aff90059a7 100644
--- a/lib/chef/resource/mdadm.rb
+++ b/lib/chef/resource/mdadm.rb
@@ -33,35 +33,35 @@ class Chef
allowed_actions :create, :assemble, :stop
property :chunk, Integer,
- default: 16,
- description: "The chunk size. This property should not be used for a RAID 1 mirrored pair (i.e. when the level property is set to 1)."
+ default: 16,
+ description: "The chunk size. This property should not be used for a RAID 1 mirrored pair (i.e. when the level property is set to 1)."
property :devices, Array,
- default: lazy { [] },
- description: "The devices to be part of a RAID array."
+ default: lazy { [] },
+ description: "The devices to be part of a RAID array."
# @todo this should get refactored away
property :exists, [ TrueClass, FalseClass ],
- default: false,
- skip_docs: true
+ default: false,
+ skip_docs: true
property :level, Integer,
- default: 1,
- description: "The RAID level."
+ default: 1,
+ description: "The RAID level."
property :metadata, String,
- default: "0.90",
- description: "The superblock type for RAID metadata."
+ default: "0.90",
+ description: "The superblock type for RAID metadata."
property :bitmap, String,
- description: "The path to a file in which a write-intent bitmap is stored."
+ description: "The path to a file in which a write-intent bitmap is stored."
property :raid_device, String,
- identity: true, name_property: true,
- description: "An optional property to specify the name of the RAID device if it differs from the resource block's name."
+ identity: true, name_property: true,
+ description: "An optional property to specify the name of the RAID device if it differs from the resource block's name."
property :layout, String,
- description: "The RAID5 parity algorithm. Possible values: left-asymmetric (or la), left-symmetric (or ls), right-asymmetric (or ra), or right-symmetric (or rs)."
+ description: "The RAID5 parity algorithm. Possible values: left-asymmetric (or la), left-symmetric (or ls), right-asymmetric (or ra), or right-symmetric (or rs)."
end
end
end