class Pod::Command::Install

Public Class Methods

new(argv) click to toggle source
Calls superclass method Pod::Command::new
# File lib/cocoapods/command/install.rb, line 39
def initialize(argv)
  super
  @deployment = argv.flag?('deployment', false)
  @clean_install = argv.flag?('clean-install', false)
end
options() click to toggle source
Calls superclass method Pod::Command::options
# File lib/cocoapods/command/install.rb, line 30
def self.options
  [
    ['--repo-update', 'Force running `pod repo update` before install'],
    ['--deployment', 'Disallow any changes to the Podfile or the Podfile.lock during installation'],
    ['--clean-install', 'Ignore the contents of the project cache and force a full pod installation. This only ' \
      'applies to projects that have enabled incremental installation'],
  ].concat(super).reject { |(name, _)| name == '--no-repo-update' }
end

Public Instance Methods

run() click to toggle source
# File lib/cocoapods/command/install.rb, line 45
def run
  verify_podfile_exists!
  installer = installer_for_config
  installer.repo_update = repo_update?(:default => false)
  installer.update = false
  installer.deployment = @deployment
  installer.clean_install = @clean_install
  installer.install!
end