Class: LgPodPlugin::Command::Install

Inherits:
LgPodPlugin::Command show all
Defined in:
lib/command/install.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from LgPodPlugin::Command

run

Constructor Details

#initialize(argv) ⇒ Install

Returns a new instance of Install.



41
42
43
44
45
# File 'lib/command/install.rb', line 41

def initialize(argv)
  self.log = argv.flag?('verbose')
  self.repo_update = argv.flag?('repo-update')
  super
end

Class Method Details

.optionsObject



32
33
34
35
36
37
38
39
# File 'lib/command/install.rb', line 32

def self.options
  [
    ['--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



47
48
49
# File 'lib/command/install.rb', line 47

def run
  LgPodPlugin.install({ :verbose => self.log, :repo_update => self.repo_update })
end