fastlane/lib/fastlane/fast_file.rb in fastlane-2.133.0 vs fastlane/lib/fastlane/fast_file.rb in fastlane-2.134.0

- old
+ new

@@ -193,10 +193,11 @@ # # Example: # sh("ls") # sh("ls", log: false) # sh(command: "ls") + # sh(command: "ls", step_name: "listing the files") # sh(command: "ls", log: false) def sh(*args, &b) # First accepts hash (or named keywords) like other actions # Otherwise uses sh method that doesn't have an interface like an action if args.count == 1 && args.first.kind_of?(Hash) @@ -210,11 +211,11 @@ else FastFile.sh(*args, &b) end end - def self.sh(*command, log: true, error_callback: nil, &b) - command_header = log ? Actions.shell_command_from_args(*command) : "shell command" + def self.sh(*command, step_name: nil, log: true, error_callback: nil, &b) + command_header = log ? step_name || Actions.shell_command_from_args(*command) : "shell command" Actions.execute_action(command_header) do Actions.sh_no_action(*command, log: log, error_callback: error_callback, &b) end end