Class: Pod::Command::DyInstall

Inherits:
Pod::Command show all
Includes:
ProjectDirectory, RepoUpdate
Defined in:
lib/pod/command/dyinstall.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.optionsObject



32
33
34
35
36
# File 'lib/pod/command/dyinstall.rb', line 32

def self.options
  [
    ['--repo-update', 'Force running `pod repo update` before install'],
  ].concat(super).reject { |(name, _)| name == '--no-repo-update' }
end

Instance Method Details

#installer_for_configObject



46
47
48
# File 'lib/pod/command/dyinstall.rb', line 46

def installer_for_config
  DyInstaller.new(config.sandbox, config.podfile, config.lockfile)
end

#runObject



38
39
40
41
42
43
44
# File 'lib/pod/command/dyinstall.rb', line 38

def run
  verify_podfile_exists!
  installer = installer_for_config
  installer.repo_update = repo_update?(:default => false)
  installer.update = false
  installer.install!
end