Class: Pod::Command::Install

Inherits:
Pod::Command show all
Includes:
ProjectDirectory, RepoUpdate
Defined in:
lib/cocoapods/command/install.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Pod::Command

#ensure_master_spec_repo_exists!, #initialize, report_error, run

Methods included from Pod::Config::Mixin

#config

Constructor Details

This class inherits a constructor from Pod::Command

Class Method Details

.optionsObject



30
31
32
33
34
# File 'lib/cocoapods/command/install.rb', line 30

def self.options
  [
    ['--repo-update', 'Force running `pod repo update` before install'],
  ].concat(super).reject { |(name, _)| name == '--no-repo-update' }
end

Instance Method Details

#runObject



36
37
38
39
40
41
42
# File 'lib/cocoapods/command/install.rb', line 36

def run
  verify_podfile_exists!
  installer = installer_for_config
  installer.repo_update = repo_update?(:default => false)
  installer.update = false
  installer.install!
end