Format Ruby code blocks
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user