Module: Pindo::Options::PodOptions

Extended by:
OptionGroup
Defined in:
lib/pindo/options/groups/pod_options.rb

Overview

Pod 相关参数组定义 CocoaPods 操作相关的参数(podupdate、podlint、podpush)

Class Method Summary collapse

Methods included from OptionGroup

all, all_options, except, merge, select, select_with_defaults

Class Method Details

.all_optionsObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/pindo/options/groups/pod_options.rb', line 11

def self.all_options
  @all_options ||= {
    path: OptionItem.new(
      key: :path,
      name: '项目目录',
      description: '指定 Pod 库所在的项目目录',
      type: String,
      env_name: 'PINDO_POD_PATH',
      optional: true,
      example: 'pindo ios podupdate --path=./MyPodLib'
    ),

    install: OptionItem.new(
      key: :install,
      name: '执行安装',
      description: '更新完 lib 之后执行 pod install',
      type: OptionItem::Boolean,
      env_name: 'PINDO_POD_INSTALL',
      default_value: false,
      optional: true,
      example: 'pindo ios podupdate --install'
    )
  }
end