Sha256: 90cbd8d099e93968b994494b18eba14975c5292255b7fcd1d0d67c8b42926159
Contents?: true
Size: 1.29 KB
Versions: 2
Compression:
Stored size: 1.29 KB
Contents
require 'singleton' require 'cocoapods' require 'cocoapods-core' module LgPodPlugin class LProject include Singleton attr_reader :podfile attr_reader :lockfile attr_reader :update attr_reader :targets attr_reader :workspace attr_reader :repo_update attr_reader :external_pods attr_reader :need_update_pods attr_accessor :cache_specs attr_accessor :redirect_url_hash def setup(workspace,podfile_path, update, repo_update) @podfile = Pod::Podfile.from_file(podfile_path) @update = update @workspace = workspace @repo_update = repo_update lockfile_path = workspace.join("Podfile.lock") @lockfile = Pod::Lockfile.from_file(lockfile_path) if lockfile_path.exist? target = @podfile.send(:current_target_definition) children = target.children @targets = Array.new external_pods = Hash.new children.each do |s| target = LPodTarget.new(s) external_pods.merge!(target.dependencies) @targets.append(target) end @cache_specs = Hash.new @external_pods = Hash.new.merge!(external_pods) @need_update_pods = Hash.new.merge!(external_pods) @redirect_url_hash = Hash.new return self end def self.shared return LProject.instance end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lg_pod_plugin-1.1.6.2 | lib/lg_pod_plugin/installer/project.rb |
lg_pod_plugin-1.1.6.0 | lib/lg_pod_plugin/installer/project.rb |