Module: Pod::Command::Project

Included in:
Install, Update
Defined in:
lib/cocoapods/command/project.rb

Overview

Provides support the common behaviour of the install and update commands.

Defined Under Namespace

Modules: Options

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



18
19
20
# File 'lib/cocoapods/command/project.rb', line 18

def self.included(base)
  base.extend Options
end

Instance Method Details

#initialize(argv) ⇒ Object



22
23
24
25
26
27
# File 'lib/cocoapods/command/project.rb', line 22

def initialize(argv)
  config.clean = argv.flag?('clean', config.clean)
  config.integrate_targets = argv.flag?('integrate', config.integrate_targets)
  config.skip_repo_update = !argv.flag?('repo-update', !config.skip_repo_update)
  super
end

#run_install_with_update(update) ⇒ void

This method returns an undefined value.

Runs the installer.

Parameters:

  • whether (update)

    the installer should be run in update mode.



35
36
37
38
39
# File 'lib/cocoapods/command/project.rb', line 35

def run_install_with_update(update)
  installer = Installer.new(config.sandbox, config.podfile, config.lockfile)
  installer.update_mode = update
  installer.install!
end