class Pod::Command::Install_tal

Public Class Methods

new(argv) click to toggle source
Calls superclass method
# File lib/cocoapods-install_tal/command/install_tal.rb, line 16
def initialize(argv)
  @no_fix = argv.flag?('no-fix', false)
  super
end
options() click to toggle source

self.description = <<-DESC

替代 Cocoapods 原生 install,可以自动解决库中冲突 lib

DESC

Calls superclass method
# File lib/cocoapods-install_tal/command/install_tal.rb, line 10
def self.options
  [
    ['--no-fix', 'not fix conflict after install before generate project']
  ].concat(super)
end

Public Instance Methods

installer_tal_for_config() click to toggle source
# File lib/cocoapods-install_tal/command/install_tal.rb, line 21
def installer_tal_for_config
  InstallerTal.new(config.sandbox, config.podfile, config.lockfile, !@no_fix)
end
run() click to toggle source
# File lib/cocoapods-install_tal/command/install_tal.rb, line 25
def run
  verify_podfile_exists!
  installer = installer_tal_for_config
  installer.repo_update = repo_update?(:default => false)
  installer.update = false
  installer.install!
end