fastlane/lib/fastlane/actions/cocoapods.rb in fastlane-2.20.0.beta.20170308010036 vs fastlane/lib/fastlane/actions/cocoapods.rb in fastlane-2.20.0.beta.20170309010049
- old
+ new
@@ -22,11 +22,11 @@
cmd << '--repo-update' if params[:repo_update]
cmd << '--silent' if params[:silent]
cmd << '--verbose' if params[:verbose]
cmd << '--no-ansi' unless params[:ansi]
- Actions.sh(cmd.join(' '))
+ Actions.sh(cmd.join(' '), error_callback: params[:error_callback])
end
def self.description
"Runs `pod install` for the project"
end
@@ -73,10 +73,15 @@
description: "Explicitly specify the path to the Cocoapods' Podfile. You can either set it to the Podfile's path or to the folder containing the Podfile file",
optional: true,
is_string: true,
verify_block: proc do |value|
UI.user_error!("Could not find Podfile") unless File.exist?(value) || Helper.test?
- end)
+ end),
+ FastlaneCore::ConfigItem.new(key: :error_callback,
+ description: 'A callback invoked with the command output if there is a non-zero exit status',
+ optional: true,
+ is_string: false,
+ default_value: nil)
]
# Please don't add a version parameter to the `cocoapods` action. If you need to specify a version when running
# `cocoapods`, please start using a Gemfile and lock the version there
# More information https://guides.cocoapods.org/using/a-gemfile.html
end