summaryrefslogtreecommitdiff
path: root/lib/chef/resource/windows_font.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/windows_font.rb
parent90a74a80196725c4198b6042e8485d68c70777ac (diff)
downloadchef-lcg/new-chefstyle.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/windows_font.rb')
-rw-r--r--lib/chef/resource/windows_font.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/resource/windows_font.rb b/lib/chef/resource/windows_font.rb
index 333769c3cd..64644a815f 100644
--- a/lib/chef/resource/windows_font.rb
+++ b/lib/chef/resource/windows_font.rb
@@ -29,12 +29,12 @@ class Chef
introduced "14.0"
property :font_name, String,
- description: "An optional property to set the name of the font to install if it differs from the resource block's name.",
- name_property: true
+ description: "An optional property to set the name of the font to install if it differs from the resource block's name.",
+ name_property: true
property :source, String,
- description: "A local filesystem path or URI that is used to source the font file.",
- coerce: proc { |x| x =~ /^.:.*/ ? x.tr('\\', "/").gsub("//", "/") : x }
+ description: "A local filesystem path or URI that is used to source the font file.",
+ coerce: proc { |x| x =~ /^.:.*/ ? x.tr('\\', "/").gsub("//", "/") : x }
action :install do
description "Install a font to the system fonts directory."