fastlane/lib/fastlane/actions/cocoapods.rb in fastlane-2.141.0 vs fastlane/lib/fastlane/actions/cocoapods.rb in fastlane-2.142.0
- old
+ new
@@ -17,11 +17,11 @@
cmd << ['bundle exec'] if use_bundle_exec?(params)
cmd << ['pod install']
cmd << '--no-clean' unless params[:clean]
cmd << '--no-integrate' unless params[:integrate]
- cmd << '--clean-install' if params[:clean_install] && pod_version.to_f >= 1.7
+ cmd << '--clean-install' if params[:clean_install] && pod_version(params).to_f >= 1.7
cmd << '--repo-update' if params[:repo_update]
cmd << '--silent' if params[:silent]
cmd << '--verbose' if params[:verbose]
cmd << '--no-ansi' unless params[:ansi]
cmd << '--deployment' if params[:deployment]
@@ -40,10 +40,10 @@
def self.use_bundle_exec?(params)
params[:use_bundle_exec] && shell_out_should_use_bundle_exec?
end
- def self.pod_version
+ def self.pod_version(params)
use_bundle_exec?(params) ? `bundle exec pod --version` : `pod --version`
end
def self.call_error_callback(params, result)
if params[:error_callback]