Method: Fastlane::Actions::VersionGetPodspecAction.run

Defined in:
fastlane/lib/fastlane/actions/version_get_podspec.rb

.run(params) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'fastlane/lib/fastlane/actions/version_get_podspec.rb', line 8

def self.run(params)
  podspec_path = params[:path]

  UI.user_error!("Could not find podspec file at path '#{podspec_path}'") unless File.exist?(podspec_path)

  version_podspec_file = Helper::PodspecHelper.new(podspec_path, params[:require_variable_prefix])

  Actions.lane_context[SharedValues::PODSPEC_VERSION_NUMBER] = version_podspec_file.version_value
end