Format Ruby code blocks

This commit is contained in:
Matisse Hack
2022-06-10 20:33:35 +00:00
parent ba53785804
commit 9e24b01628
+4 -5
View File
@@ -63,17 +63,16 @@ Add the following code to the ruby file:
``` Ruby ``` Ruby
transform "DotNetCoreCLI@2" do |item| transform "DotNetCoreCLI@2" do |item|
projects = item["projects"] projects = item["projects"]
command = item['command'] command = item["command"]
run_command = [] run_command = []
if(projects.include?("$")) if projects.include?("$")
if(command.nil?) command = "build" if command.nil?
command = "build"
end
run_command << "shopt -s globstar; for f in ./**/*.csproj; do dotnet #{command} $f #{item['arguments']} ; done" run_command << "shopt -s globstar; for f in ./**/*.csproj; do dotnet #{command} $f #{item['arguments']} ; done"
else else
run_command << "dotnet #{command} #{item['projects']} #{item['arguments']}" run_command << "dotnet #{command} #{item['projects']} #{item['arguments']}"
end end
{ {
shell: "bash", shell: "bash",
run: run_command.join("\n") run: run_command.join("\n")