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

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

Overview

———————————————————————–#

Instance Method Summary collapse

Methods inherited from Pod::Command::Repo

#branch_name, #branch_remote_name, #dir, #url_of_git_repo

Methods included from Executable

#executable, execute_command

Methods inherited from Pod::Command

options, parse, report_error, run, verify_git_version!

Methods included from Pod::Config::Mixin

#config

Constructor Details

#initialize(argv) ⇒ Update

Returns a new instance of Update.



76
77
78
79
# File 'lib/cocoapods/command/repo.rb', line 76

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

Instance Method Details

#runObject



81
82
83
# File 'lib/cocoapods/command/repo.rb', line 81

def run
  SourcesManager.update(@name, true)
end