Class: Licensed::Sources::Cocoapods
- Defined in:
- lib/licensed/sources/cocoapods.rb
Instance Attribute Summary
Attributes inherited from Source
Instance Method Summary collapse
Methods inherited from Source
#dependencies, full_type, #ignored?, inherited, #initialize, register_source, type, type_and_version
Constructor Details
This class inherits a constructor from Licensed::Sources::Source
Instance Method Details
#enabled? ⇒ Boolean
13 14 15 16 17 18 19 |
# File 'lib/licensed/sources/cocoapods.rb', line 13 def enabled? false # return unless Licensed::Shell.tool_available?("pod") # config.pwd.join("Podfile").exist? && config.pwd.join("Podfile.lock").exist? end |
#enumerate_dependencies ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/licensed/sources/cocoapods.rb', line 21 def enumerate_dependencies pods.map do |pod| name = pod.name path = dependency_path(pod.root_name) version = lockfile.version(name).version Dependency.new( path: path, name: name, version: version, metadata: { "type" => Cocoapods.type } ) end end |