diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-05 12:58:00 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-05 12:58:00 -0700 |
commit | 2a4916b7f01940d1199c35645c1b2172f5bd74b2 (patch) | |
tree | df7370ed682895857181f14bb66cad8db18b298e /tasks | |
parent | 8215091264d67d81f0da9a13f968b864ff736cb2 (diff) | |
download | chef-2a4916b7f01940d1199c35645c1b2172f5bd74b2.tar.gz |
Style/StringLiteralsInInterpolation
since we use double quotes, be consistent everywhere.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'tasks')
-rwxr-xr-x | tasks/docs.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tasks/docs.rb b/tasks/docs.rb index 71e0e83bdc..90a52555de 100755 --- a/tasks/docs.rb +++ b/tasks/docs.rb @@ -30,13 +30,13 @@ namespace :docs_site do # build the resource string with property spacing between property names and comments text = " #{resource_name} 'name' do\n" properties.each do |p| - text << " #{p['name'].ljust(padding_size)}" + text << " #{p["name"].ljust(padding_size)}" text << friendly_types_list(p["is"]) text << " # default value: 'name' unless specified" if p["name_property"] - text << " # default value: #{pretty_default(p['default'])}" unless pretty_default(p["default"]).nil? + text << " # default value: #{pretty_default(p["default"])}" unless pretty_default(p["default"]).nil? text << "\n" end - text << " #{'action'.ljust(padding_size)}Symbol # defaults to :#{@default_action.first} if not specified\n" + text << " #{"action".ljust(padding_size)}Symbol # defaults to :#{@default_action.first} if not specified\n" text << " end" text end @@ -58,7 +58,7 @@ namespace :docs_site do def friendly_properly_list(arr) return nil if arr.empty? # resources w/o properties - props = arr.map { |x| "``#{x['name']}``" } + props = arr.map { |x| "``#{x["name"]}``" } # build the text string containing all properties bolded w/ punctuation if props.size > 1 |