Module: Pod::Command::Project
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
- #initialize(argv) ⇒ Object
-
#run_install_with_update(update) ⇒ void
Runs the installer.
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.
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 |