Method: Fastlane::Actions::ReadPodspecAction.run

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

.run(params) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'fastlane/lib/fastlane/actions/read_podspec.rb', line 8

def self.run(params)
  Actions.verify_gem!('cocoapods')

  path = params[:path]

  require 'cocoapods-core'
  spec = Pod::Spec.from_file(path).to_hash

  UI.success("Reading podspec from file #{path}")

  Actions.lane_context[SharedValues::READ_PODSPEC_JSON] = spec
  return spec
end