module Pod::Command::Options::RepoUpdate

Provides support for commands to skip updating the spec repositories.

Public Class Methods

included(base) click to toggle source
# File lib/pod/command/repo_rsync.rb, line 18
def self.included(base)
  base.extend(Options)
end
new(argv) click to toggle source
Calls superclass method
# File lib/pod/command/repo_rsync.rb, line 30
def initialize(argv)
  @repo_update = argv.flag?('repo-update')
  print "@repo_update #{@repo_update} \n"
  if !@repo_update.nil?
    ENV["NO_REPO_UPDATE"]="true"
  end
  super
end

Public Instance Methods

repo_update?(default: false) click to toggle source
# File lib/pod/command/repo_rsync.rb, line 22
def repo_update?(default: false)
  if @repo_update.nil?
    default
  else
    @repo_update
  end
end