Module: Pod::Command::Project

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

Overview

Provides support for 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



49
50
51
# File 'lib/cocoapods/command/project.rb', line 49

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

Instance Method Details

#initialize(argv) ⇒ Object



53
54
55
56
57
58
# File 'lib/cocoapods/command/project.rb', line 53

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:

  • update (Hash, Boolean, nil)

    Pods that have been requested to be updated or true if all Pods should be updated



68
69
70
71
72
# File 'lib/cocoapods/command/project.rb', line 68

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