fastlane/lib/fastlane/actions/pod_push.rb in fastlane-2.208.0 vs fastlane/lib/fastlane/actions/pod_push.rb in fastlane-2.209.0

- old
+ new

@@ -57,10 +57,18 @@ if params[:synchronous] command << "--synchronous" end + if params[:no_overwrite] + command << "--no-overwrite" + end + + if params[:local_only] + command << "--local-only" + end + result = Actions.sh(command.join(' ')) UI.success("Successfully pushed Podspec ⬆️ ") return result end @@ -141,10 +149,20 @@ env_name: "FL_POD_PUSH_USE_MODULAR_HEADERS"), FastlaneCore::ConfigItem.new(key: :synchronous, description: "If validation depends on other recently pushed pods, synchronize", optional: true, type: Boolean, - env_name: "FL_POD_PUSH_SYNCHRONOUS") + env_name: "FL_POD_PUSH_SYNCHRONOUS"), + FastlaneCore::ConfigItem.new(key: :no_overwrite, + description: "Disallow pushing that would overwrite an existing spec", + optional: true, + type: Boolean, + env_name: "FL_POD_PUSH_NO_OVERWRITE"), + FastlaneCore::ConfigItem.new(key: :local_only, + description: "Does not perform the step of pushing REPO to its remote", + optional: true, + type: Boolean, + env_name: "FL_POD_PUSH_LOCAL_ONLY") ] end def self.return_value nil