Class: Pod::Command::Repo::Update

Inherits:
Pod::Command::Repo show all
Defined in:
lib/cocoapods/command/repo/update.rb

Instance Method Summary collapse

Methods inherited from Pod::Command::Repo

#dir

Methods included from Executable

capture_command, capture_command!, #executable, execute_command, popen3, reader, which, which!

Methods inherited from Pod::Command

#ensure_master_spec_repo_exists!, ensure_not_root_or_allowed!, git_version, #installer_for_config, options, report_error, run, #verify_lockfile_exists!, verify_minimum_git_version!, #verify_podfile_exists!, verify_xcode_license_approved!

Methods included from Pod::Config::Mixin

#config

Constructor Details

#initialize(argv) ⇒ Update

Returns a new instance of Update.


16
17
18
19
# File 'lib/cocoapods/command/repo/update.rb', line 16

def initialize(argv)
  @name = argv.shift_argument
  super
end

Instance Method Details

#exclude_repos_dir_from_backupvoid (private)

This method returns an undefined value.

Excludes the repos directory from backups.


33
34
35
# File 'lib/cocoapods/command/repo/update.rb', line 33

def exclude_repos_dir_from_backup
  config.exclude_from_backup(config.repos_dir)
end

#runObject


21
22
23
24
25
# File 'lib/cocoapods/command/repo/update.rb', line 21

def run
  show_output = !config.silent?
  config.sources_manager.update(@name, show_output)
  exclude_repos_dir_from_backup
end