Skip to content

Commit 5f0ae54

Browse files
committed
This reverts commit fac4b91.
1 parent 1ea0713 commit 5f0ae54

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

lib/omnibus/builder.rb

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -373,16 +373,11 @@ def bundle(command, options = {})
373373
# @param (see #command)
374374
# @return (see #command)
375375
#
376-
def appbundle(software_name, options = {})
376+
def appbundle(software_name, lockdir: nil, gem: nil, without: nil, extra_bin_files: nil , **options)
377377
build_commands << BuildCommand.new("appbundle `#{software_name}'") do
378378
bin_dir = "#{install_dir}/bin"
379379
appbundler_bin = embedded_bin("appbundler")
380380

381-
lockdir = options[:lockdir]
382-
gem = options[:gem]
383-
without = options[:without]
384-
extra_bin_files = options[:extra_bin_files]
385-
386381
lockdir ||=
387382
begin
388383
app_software = project.softwares.find do |p|
@@ -540,7 +535,7 @@ def erb(options = {})
540535
def mkdir(directory, options = {})
541536
build_commands << BuildCommand.new("mkdir `#{directory}'") do
542537
Dir.chdir(software.project_dir) do
543-
FileUtils.mkdir_p(directory, **options)
538+
FileUtils.mkdir_p(directory, options)
544539
end
545540
end
546541
end
@@ -562,7 +557,7 @@ def touch(file, options = {})
562557
parent = File.dirname(file)
563558
FileUtils.mkdir_p(parent) unless File.directory?(parent)
564559

565-
FileUtils.touch(file, **options)
560+
FileUtils.touch(file, options)
566561
end
567562
end
568563
end
@@ -583,7 +578,7 @@ def delete(path, options = {})
583578
build_commands << BuildCommand.new("delete `#{path}'") do
584579
Dir.chdir(software.project_dir) do
585580
FileSyncer.glob(path).each do |file|
586-
FileUtils.rm_rf(file, **options)
581+
FileUtils.rm_rf(file, options)
587582
end
588583
end
589584
end
@@ -634,7 +629,7 @@ def copy(source, destination, options = {})
634629
log.warn(log_key) { "no matched files for glob #{command}" }
635630
else
636631
files.each do |file|
637-
FileUtils.cp_r(file, destination, **options)
632+
FileUtils.cp_r(file, destination, options)
638633
end
639634
end
640635
end
@@ -663,7 +658,7 @@ def move(source, destination, options = {})
663658
log.warn(log_key) { "no matched files for glob #{command}" }
664659
else
665660
files.each do |file|
666-
FileUtils.mv(file, destination, **options)
661+
FileUtils.mv(file, destination, options)
667662
end
668663
end
669664
end
@@ -695,7 +690,7 @@ def link(source, destination, options = {})
695690
log.warn(log_key) { "no matched files for glob #{command}" }
696691
else
697692
files.each do |file|
698-
FileUtils.ln_s(file, destination, **options)
693+
FileUtils.ln_s(file, destination, options)
699694
end
700695
end
701696
end

0 commit comments

Comments
 (0)