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