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

#executable, execute_command, which

Methods inherited from Pod::Command

#ensure_master_spec_repo_exists!, options, report_error, run

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

#runObject



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

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