Class: Pod::Command::Binary

Inherits:
Pod::Command show all
Defined in:
lib/command/fetch.rb,
lib/command/binary.rb,
lib/command/prebuild.rb,
lib/command/visualize.rb

Direct Known Subclasses

Fetch, Prebuild, Viz

Defined Under Namespace

Classes: Fetch, Prebuild, Viz

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Binary

Returns a new instance of Binary.



17
18
19
20
21
# File 'lib/command/binary.rb', line 17

def initialize(argv)
  super
  load_podfile
  update_cli_config(:repo => argv.option("repo"))
end

Class Method Details

.optionsObject



11
12
13
14
15
# File 'lib/command/binary.rb', line 11

def self.options
  [
    ["--repo", "Cache repo (in accordance with `cache_repo` in `config_cocoapods_binary_cache`)"]
  ]
end

Instance Method Details

#load_podfileObject



27
28
29
# File 'lib/command/binary.rb', line 27

def load_podfile
  Pod::Config.instance.podfile
end

#prebuild_configObject



23
24
25
# File 'lib/command/binary.rb', line 23

def prebuild_config
  @prebuild_config ||= PodPrebuild.config
end

#update_cli_config(options) ⇒ Object



31
32
33
# File 'lib/command/binary.rb', line 31

def update_cli_config(options)
  PodPrebuild.config.cli_config.merge!(options)
end