Fix
This commit is contained in:
parent
2644cd4b86
commit
0ffd562cca
@ -14,10 +14,8 @@ module Faaso
|
||||
|
||||
funko.prepare_build(path: tmp_dir)
|
||||
if options["--local"]
|
||||
funkos.each do |funko|
|
||||
Log.info { "Building function... #{funko.name} in #{tmp_dir}" }
|
||||
funko.build tmp_dir
|
||||
end
|
||||
Log.info { "Building function... #{funko.name} in #{tmp_dir}" }
|
||||
funko.build tmp_dir
|
||||
else # Running against a server
|
||||
# Create a tarball for the funko
|
||||
buf = IO::Memory.new
|
||||
|
@ -58,8 +58,8 @@ module Funko
|
||||
tar.each_entry do |entry|
|
||||
dst = Path.new(tmp_dir, entry.name)
|
||||
Dir.mkdir_p dst.dirname
|
||||
File.open(Path.new(tmp_dir, entry.name), "w") do |dst|
|
||||
IO.copy entry.io, dst
|
||||
File.open(Path.new(tmp_dir, entry.name), "w") do |outf|
|
||||
IO.copy entry.io, outf
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -150,7 +150,7 @@ module Funko
|
||||
output: output,
|
||||
error: output,
|
||||
)
|
||||
Log.debug { "faaso output: #{output.to_s}" }
|
||||
Log.debug { "faaso output: #{output}" }
|
||||
result = {
|
||||
"exit_code" => status.exit_code,
|
||||
"output" => output.to_s,
|
||||
|
Loading…
Reference in New Issue
Block a user