Module: Pod::Command::Options::RepoUpdate

Defined in:
lib/cocoapods/command/options/repo_update.rb

Overview

Provides support for commands to skip updating the spec repositories.

Defined Under Namespace

Modules: Options

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



15
16
17
# File 'lib/cocoapods/command/options/repo_update.rb', line 15

def self.included(base)
  base.extend(Options)
end

Instance Method Details

#initialize(argv) ⇒ Object



27
28
29
30
# File 'lib/cocoapods/command/options/repo_update.rb', line 27

def initialize(argv)
  @repo_update = argv.flag?('repo-update')
  super
end

#repo_update?(default: false) ⇒ Boolean

Returns:

  • (Boolean)


19
20
21
22
23
24
25
# File 'lib/cocoapods/command/options/repo_update.rb', line 19

def repo_update?(default: false)
  if @repo_update.nil?
    default
  else
    @repo_update
  end
end