Class: LgPodPlugin::Command::Install
- Inherits:
-
LgPodPlugin::Command
- Object
- CLAide::Command
- LgPodPlugin::Command
- LgPodPlugin::Command::Install
- Defined in:
- lib/command/install.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Install
constructor
A new instance of Install.
- #run ⇒ Object
Methods inherited from LgPodPlugin::Command
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
.options ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'lib/command/install.rb', line 32 def self. [ ['--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
#run ⇒ Object
47 48 49 |
# File 'lib/command/install.rb', line 47 def run LgPodPlugin::Main.run("install",{ :verbose => self.log, :repo_update => self.repo_update }) end |