Class: Pod::Command::Install
- Inherits:
-
Object
- Object
- Pod::Command::Install
- Defined in:
- lib/cocoapods-packager-ext/command/install_ext.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Install
constructor
class << self options_t = instance_method(:options) # alias options_t options define_method(:options) do item = options_t.bind(self).call().
- #installer_for_config ⇒ Object
- #installer_for_config_t ⇒ Object
Constructor Details
#initialize(argv) ⇒ Install
class << self
= instance_method(:options)
# alias options_t options
define_method(:options) do
item = .bind(self).call()
[
['--dry-deps','only test depend'],
].concat(item)
end
end class << self
alias
def
o =
o.push(['--dry-deps','only test depend'])
o.concat(super)
end
end
76 77 78 79 80 81 |
# File 'lib/cocoapods-packager-ext/command/install_ext.rb', line 76 def initialize(argv) super @deployment = argv.flag?('deployment', false) @clean_install = argv.flag?('clean-install', false) @dry_deps = argv.flag?('dry-deps',false) end |
Class Method Details
.options ⇒ Object
46 47 48 49 50 51 52 53 |
# File 'lib/cocoapods-packager-ext/command/install_ext.rb', line 46 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.'], ['--dry-deps','only test depend'], ].concat(super).reject { |(name, _)| name == '--no-repo-update' } end |
Instance Method Details
#installer_for_config ⇒ Object
84 85 86 87 88 89 90 |
# File 'lib/cocoapods-packager-ext/command/install_ext.rb', line 84 def installer_for_config item = installer_for_config_t if @dry_deps item.dry_deps = @dry_deps end item end |
#installer_for_config_t ⇒ Object
83 |
# File 'lib/cocoapods-packager-ext/command/install_ext.rb', line 83 alias installer_for_config_t installer_for_config |