Add verbose to extract_nestedly.
This commit is contained in:
parent
891be1ec64
commit
4f495a967d
@ -48,7 +48,8 @@ class AbstractDownloadStrategy
|
|||||||
# Unlike {Resource#stage}, this does not take a block.
|
# Unlike {Resource#stage}, this does not take a block.
|
||||||
def stage
|
def stage
|
||||||
UnpackStrategy.detect(cached_location, ref_type: @ref_type, ref: @ref)
|
UnpackStrategy.detect(cached_location, ref_type: @ref_type, ref: @ref)
|
||||||
.extract_nestedly(basename: basename_without_params)
|
.extract_nestedly(basename: basename_without_params,
|
||||||
|
verbose: ARGV.verbose? && !shutup)
|
||||||
end
|
end
|
||||||
|
|
||||||
# @!attribute [r] cached_location
|
# @!attribute [r] cached_location
|
||||||
@ -68,7 +69,7 @@ class AbstractDownloadStrategy
|
|||||||
end
|
end
|
||||||
|
|
||||||
def safe_system(*args)
|
def safe_system(*args)
|
||||||
if @shutup
|
if shutup
|
||||||
return if quiet_system(*args)
|
return if quiet_system(*args)
|
||||||
raise(ErrorDuringExecution.new(args, status: $CHILD_STATUS))
|
raise(ErrorDuringExecution.new(args, status: $CHILD_STATUS))
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user