@@ -373,16 +373,11 @@ def bundle(command, options = {})
373
373
# @param (see #command)
374
374
# @return (see #command)
375
375
#
376
- def appbundle ( software_name , options = { } )
376
+ def appbundle ( software_name , lockdir : nil , gem : nil , without : nil , extra_bin_files : nil , ** options )
377
377
build_commands << BuildCommand . new ( "appbundle `#{ software_name } '" ) do
378
378
bin_dir = "#{ install_dir } /bin"
379
379
appbundler_bin = embedded_bin ( "appbundler" )
380
380
381
- lockdir = options [ :lockdir ]
382
- gem = options [ :gem ]
383
- without = options [ :without ]
384
- extra_bin_files = options [ :extra_bin_files ]
385
-
386
381
lockdir ||=
387
382
begin
388
383
app_software = project . softwares . find do |p |
@@ -540,7 +535,7 @@ def erb(options = {})
540
535
def mkdir ( directory , options = { } )
541
536
build_commands << BuildCommand . new ( "mkdir `#{ directory } '" ) do
542
537
Dir . chdir ( software . project_dir ) do
543
- FileUtils . mkdir_p ( directory , ** options )
538
+ FileUtils . mkdir_p ( directory , options )
544
539
end
545
540
end
546
541
end
@@ -562,7 +557,7 @@ def touch(file, options = {})
562
557
parent = File . dirname ( file )
563
558
FileUtils . mkdir_p ( parent ) unless File . directory? ( parent )
564
559
565
- FileUtils . touch ( file , ** options )
560
+ FileUtils . touch ( file , options )
566
561
end
567
562
end
568
563
end
@@ -583,7 +578,7 @@ def delete(path, options = {})
583
578
build_commands << BuildCommand . new ( "delete `#{ path } '" ) do
584
579
Dir . chdir ( software . project_dir ) do
585
580
FileSyncer . glob ( path ) . each do |file |
586
- FileUtils . rm_rf ( file , ** options )
581
+ FileUtils . rm_rf ( file , options )
587
582
end
588
583
end
589
584
end
@@ -634,7 +629,7 @@ def copy(source, destination, options = {})
634
629
log . warn ( log_key ) { "no matched files for glob #{ command } " }
635
630
else
636
631
files . each do |file |
637
- FileUtils . cp_r ( file , destination , ** options )
632
+ FileUtils . cp_r ( file , destination , options )
638
633
end
639
634
end
640
635
end
@@ -663,7 +658,7 @@ def move(source, destination, options = {})
663
658
log . warn ( log_key ) { "no matched files for glob #{ command } " }
664
659
else
665
660
files . each do |file |
666
- FileUtils . mv ( file , destination , ** options )
661
+ FileUtils . mv ( file , destination , options )
667
662
end
668
663
end
669
664
end
@@ -695,7 +690,7 @@ def link(source, destination, options = {})
695
690
log . warn ( log_key ) { "no matched files for glob #{ command } " }
696
691
else
697
692
files . each do |file |
698
- FileUtils . ln_s ( file , destination , ** options )
693
+ FileUtils . ln_s ( file , destination , options )
699
694
end
700
695
end
701
696
end
0 commit comments