Class: Pod::Command::Bin::Install

Inherits:
Pod::Command::Bin show all
Includes:
Pod
Defined in:
lib/cocoapods-imy-bin/command/bin/install.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Pod

match_version?

Methods inherited from Pod::Command::Bin

#validate!

Methods included from CBin::SpecFilesHelper

#binary_spec, #binary_spec_files, #binary_template_spec, #binary_template_spec_file, #binary_template_spec_files, #clear_binary_spec_file_if_needed, #code_spec, #code_spec_files, #create_binary_spec_file, #find_spec_file, #spec_files

Methods included from CBin::SourcesHelper

#binary_source, #code_source, #sources_manager, #sources_option, #valid_sources

Constructor Details

#initialize(argv) ⇒ Install

Returns a new instance of Install.



27
28
29
30
31
32
33
34
# File 'lib/cocoapods-imy-bin/command/bin/install.rb', line 27

def initialize(argv)
  if argv.flag?('binary') 
    ENV['BINARY'] = 'true'
  end
  @update = argv.flag?('update')
  super
  @additional_args = argv.remainder!
end

Class Method Details

.optionsObject



17
18
19
20
21
22
23
24
25
# File 'lib/cocoapods-imy-bin/command/bin/install.rb', line 17

def self.options
  [
    ['--binary', 'set ENV["BINARY"] to true'],
    ['--repo-update', 'Force running `pod repo update` before install'],
    ['--deployment', 'Disallow any changes to the Podfile or the Podfile.lock during installation'],
    ['--clean-install', 'Ignore the contents of the project cache and force a full pod installation. This only ' \
  'applies to projects that have enabled incremental installation']
  ].concat(super).reject { |(name, _)| name == '--no-repo-update' }
end

Instance Method Details

#runObject



36
37
38
39
40
41
42
43
44
# File 'lib/cocoapods-imy-bin/command/bin/install.rb', line 36

def run
  Update.load_local_podfile
  argvs = [
    *@additional_args
  ]
  gen = Pod::Command::Install.new(CLAide::ARGV.new(argvs))
  gen.validate!
  gen.run
end