Class: Pod::Command::Binary::Fetch

Inherits:
Pod::Command::Binary show all
Defined in:
lib/command/fetch.rb

Instance Method Summary collapse

Methods inherited from Pod::Command::Binary

#load_podfile, options, #prebuild_config, #update_cli_config

Constructor Details

#initialize(argv) ⇒ Fetch

Returns a new instance of Fetch.



8
9
10
11
12
13
14
# File 'lib/command/fetch.rb', line 8

def initialize(argv)
  super
  @fetcher = PodPrebuild::CacheFetcher.new(
    config: prebuild_config,
    cache_branch: argv.shift_argument || "master"
  )
end

Instance Method Details

#runObject



16
17
18
# File 'lib/command/fetch.rb', line 16

def run
  @fetcher.run
end