Class: Pod::Command::Binary

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

Direct Known Subclasses

Fetch, Prebuild, Push, Viz

Defined Under Namespace

Classes: Fetch, Prebuild, Push, Viz

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Binary

Returns a new instance of Binary.



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

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

Class Method Details

.optionsObject



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

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

Instance Method Details

#load_podfileObject



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

def load_podfile
  Pod::Config.instance.podfile
end

#prebuild_configObject



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

def prebuild_config
  @prebuild_config ||= PodPrebuild.config
end

#update_cli_config(options) ⇒ Object



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

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