Module: Pindo::Command::DeployOptions
- Included in:
- Pindo::Command::Deploy::Bundleid, Pindo::Command::Deploy::Cert, Pindo::Command::Deploy::Check, Pindo::Command::Deploy::Configproj, Pindo::Command::Deploy::Confusecode, Pindo::Command::Deploy::Confuseproj, Pindo::Command::Deploy::Getitcinfo, Pindo::Command::Deploy::Iap, Pindo::Command::Deploy::Itcapp, Pindo::Command::Deploy::Itcinfo, Pindo::Command::Deploy::Pem, Pindo::Command::Deploy::Quswark, Pindo::Command::Deploy::Quswauth, Pindo::Command::Deploy::Resign, Pindo::Command::Deploy::Tag, Pindo::Command::Deploy::Updateconfig, Pindo::Command::Deploy::Uploadipa, Pindo::Command::Dev::Confusecode, Pindo::Command::Dev::Confuseproj, Ipa::Import, Ipa::Output, Utils::Renewproj
- Defined in:
- lib/pindo/options/deployoptions.rb
Instance Attribute Summary collapse
-
#additional_args ⇒ Object
Returns the value of attribute additional_args.
-
#apple_id ⇒ Object
Returns the value of attribute apple_id.
-
#args_adhoc_flag ⇒ Object
Returns the value of attribute args_adhoc_flag.
-
#args_appconfig ⇒ Object
Returns the value of attribute args_appconfig.
-
#args_appconfig_dir ⇒ Object
Returns the value of attribute args_appconfig_dir.
-
#args_appconfig_fullname ⇒ Object
Returns the value of attribute args_appconfig_fullname.
-
#args_apple_id ⇒ Object
Returns the value of attribute args_apple_id.
-
#args_appstore_flag ⇒ Object
Returns the value of attribute args_appstore_flag.
-
#args_array ⇒ Object
Returns the value of attribute args_array.
-
#args_bundle_id ⇒ Object
Returns the value of attribute args_bundle_id.
-
#args_dev_flag ⇒ Object
Returns the value of attribute args_dev_flag.
-
#args_repo_name ⇒ Object
Returns the value of attribute args_repo_name.
-
#argv_temp ⇒ Object
Returns the value of attribute argv_temp.
-
#bundle_id ⇒ Object
Returns the value of attribute bundle_id.
-
#bundle_id_extension ⇒ Object
Returns the value of attribute bundle_id_extension.
-
#bundle_id_extensionad ⇒ Object
Returns the value of attribute bundle_id_extensionad.
-
#bundle_id_extensionporn ⇒ Object
Returns the value of attribute bundle_id_extensionporn.
-
#bundle_id_imessage ⇒ Object
Returns the value of attribute bundle_id_imessage.
-
#bundle_id_keyboard ⇒ Object
Returns the value of attribute bundle_id_keyboard.
-
#bundle_id_pushcontent ⇒ Object
Returns the value of attribute bundle_id_pushcontent.
-
#bundle_id_pushservice ⇒ Object
Returns the value of attribute bundle_id_pushservice.
-
#bundle_id_siri ⇒ Object
Returns the value of attribute bundle_id_siri.
-
#bundle_id_siriui ⇒ Object
Returns the value of attribute bundle_id_siriui.
-
#bundle_id_watchapp ⇒ Object
Returns the value of attribute bundle_id_watchapp.
-
#bundle_id_watchapp_extension ⇒ Object
Returns the value of attribute bundle_id_watchapp_extension.
-
#bundle_id_widget ⇒ Object
Returns the value of attribute bundle_id_widget.
-
#config_json ⇒ Object
Returns the value of attribute config_json.
-
#deploy_acount_id ⇒ Object
Returns the value of attribute deploy_acount_id.
-
#deploy_group_id ⇒ Object
Returns the value of attribute deploy_group_id.
-
#deploy_icloud_id ⇒ Object
Returns the value of attribute deploy_icloud_id.
-
#deploy_identifier ⇒ Object
Returns the value of attribute deploy_identifier.
-
#deploy_identifier_extension ⇒ Object
Returns the value of attribute deploy_identifier_extension.
-
#deploy_identifier_extensionad ⇒ Object
Returns the value of attribute deploy_identifier_extensionad.
-
#deploy_identifier_extensionporn ⇒ Object
Returns the value of attribute deploy_identifier_extensionporn.
-
#deploy_identifier_imessage ⇒ Object
Returns the value of attribute deploy_identifier_imessage.
-
#deploy_identifier_keyboard ⇒ Object
Returns the value of attribute deploy_identifier_keyboard.
-
#deploy_identifier_pushcontent ⇒ Object
Returns the value of attribute deploy_identifier_pushcontent.
-
#deploy_identifier_pushservice ⇒ Object
Returns the value of attribute deploy_identifier_pushservice.
-
#deploy_identifier_siri ⇒ Object
Returns the value of attribute deploy_identifier_siri.
-
#deploy_identifier_siriui ⇒ Object
Returns the value of attribute deploy_identifier_siriui.
-
#deploy_identifier_watchapp ⇒ Object
Returns the value of attribute deploy_identifier_watchapp.
-
#deploy_identifier_watchapp_extension ⇒ Object
Returns the value of attribute deploy_identifier_watchapp_extension.
-
#deploy_identifier_widget ⇒ Object
Returns the value of attribute deploy_identifier_widget.
-
#deploy_repo_name ⇒ Object
Returns the value of attribute deploy_repo_name.
-
#group_id ⇒ Object
Returns the value of attribute group_id.
-
#icloud_id ⇒ Object
Returns the value of attribute icloud_id.
-
#newconfuse_flag ⇒ Object
Returns the value of attribute newconfuse_flag.
-
#oldconfuse_flag ⇒ Object
Returns the value of attribute oldconfuse_flag.
Class Method Summary collapse
Instance Method Summary collapse
- #check_config_version ⇒ Object
- #get_build_type_args ⇒ Object
- #get_bundle_id_map ⇒ Object
- #get_confuse_type_args ⇒ Object
- #init_deploy_params ⇒ Object
- #init_develop_params ⇒ Object
- #initialize(argv) ⇒ Object
- #print_params_info ⇒ Object
- #validate! ⇒ Object
Instance Attribute Details
#additional_args ⇒ Object
Returns the value of attribute additional_args.
61 62 63 |
# File 'lib/pindo/options/deployoptions.rb', line 61 def additional_args @additional_args end |
#apple_id ⇒ Object
Returns the value of attribute apple_id.
18 19 20 |
# File 'lib/pindo/options/deployoptions.rb', line 18 def apple_id @apple_id end |
#args_adhoc_flag ⇒ Object
Returns the value of attribute args_adhoc_flag.
54 55 56 |
# File 'lib/pindo/options/deployoptions.rb', line 54 def args_adhoc_flag @args_adhoc_flag end |
#args_appconfig ⇒ Object
Returns the value of attribute args_appconfig.
9 10 11 |
# File 'lib/pindo/options/deployoptions.rb', line 9 def args_appconfig @args_appconfig end |
#args_appconfig_dir ⇒ Object
Returns the value of attribute args_appconfig_dir.
10 11 12 |
# File 'lib/pindo/options/deployoptions.rb', line 10 def args_appconfig_dir @args_appconfig_dir end |
#args_appconfig_fullname ⇒ Object
Returns the value of attribute args_appconfig_fullname.
11 12 13 |
# File 'lib/pindo/options/deployoptions.rb', line 11 def args_appconfig_fullname @args_appconfig_fullname end |
#args_apple_id ⇒ Object
Returns the value of attribute args_apple_id.
13 14 15 |
# File 'lib/pindo/options/deployoptions.rb', line 13 def args_apple_id @args_apple_id end |
#args_appstore_flag ⇒ Object
Returns the value of attribute args_appstore_flag.
55 56 57 |
# File 'lib/pindo/options/deployoptions.rb', line 55 def args_appstore_flag @args_appstore_flag end |
#args_array ⇒ Object
Returns the value of attribute args_array.
6 7 8 |
# File 'lib/pindo/options/deployoptions.rb', line 6 def args_array @args_array end |
#args_bundle_id ⇒ Object
Returns the value of attribute args_bundle_id.
14 15 16 |
# File 'lib/pindo/options/deployoptions.rb', line 14 def args_bundle_id @args_bundle_id end |
#args_dev_flag ⇒ Object
Returns the value of attribute args_dev_flag.
53 54 55 |
# File 'lib/pindo/options/deployoptions.rb', line 53 def args_dev_flag @args_dev_flag end |
#args_repo_name ⇒ Object
Returns the value of attribute args_repo_name.
15 16 17 |
# File 'lib/pindo/options/deployoptions.rb', line 15 def args_repo_name @args_repo_name end |
#argv_temp ⇒ Object
Returns the value of attribute argv_temp.
7 8 9 |
# File 'lib/pindo/options/deployoptions.rb', line 7 def argv_temp @argv_temp end |
#bundle_id ⇒ Object
Returns the value of attribute bundle_id.
21 22 23 |
# File 'lib/pindo/options/deployoptions.rb', line 21 def bundle_id @bundle_id end |
#bundle_id_extension ⇒ Object
Returns the value of attribute bundle_id_extension.
26 27 28 |
# File 'lib/pindo/options/deployoptions.rb', line 26 def bundle_id_extension @bundle_id_extension end |
#bundle_id_extensionad ⇒ Object
Returns the value of attribute bundle_id_extensionad.
30 31 32 |
# File 'lib/pindo/options/deployoptions.rb', line 30 def bundle_id_extensionad @bundle_id_extensionad end |
#bundle_id_extensionporn ⇒ Object
Returns the value of attribute bundle_id_extensionporn.
31 32 33 |
# File 'lib/pindo/options/deployoptions.rb', line 31 def bundle_id_extensionporn @bundle_id_extensionporn end |
#bundle_id_imessage ⇒ Object
Returns the value of attribute bundle_id_imessage.
25 26 27 |
# File 'lib/pindo/options/deployoptions.rb', line 25 def @bundle_id_imessage end |
#bundle_id_keyboard ⇒ Object
Returns the value of attribute bundle_id_keyboard.
24 25 26 |
# File 'lib/pindo/options/deployoptions.rb', line 24 def bundle_id_keyboard @bundle_id_keyboard end |
#bundle_id_pushcontent ⇒ Object
Returns the value of attribute bundle_id_pushcontent.
22 23 24 |
# File 'lib/pindo/options/deployoptions.rb', line 22 def bundle_id_pushcontent @bundle_id_pushcontent end |
#bundle_id_pushservice ⇒ Object
Returns the value of attribute bundle_id_pushservice.
23 24 25 |
# File 'lib/pindo/options/deployoptions.rb', line 23 def bundle_id_pushservice @bundle_id_pushservice end |
#bundle_id_siri ⇒ Object
Returns the value of attribute bundle_id_siri.
27 28 29 |
# File 'lib/pindo/options/deployoptions.rb', line 27 def bundle_id_siri @bundle_id_siri end |
#bundle_id_siriui ⇒ Object
Returns the value of attribute bundle_id_siriui.
28 29 30 |
# File 'lib/pindo/options/deployoptions.rb', line 28 def bundle_id_siriui @bundle_id_siriui end |
#bundle_id_watchapp ⇒ Object
Returns the value of attribute bundle_id_watchapp.
32 33 34 |
# File 'lib/pindo/options/deployoptions.rb', line 32 def bundle_id_watchapp @bundle_id_watchapp end |
#bundle_id_watchapp_extension ⇒ Object
Returns the value of attribute bundle_id_watchapp_extension.
33 34 35 |
# File 'lib/pindo/options/deployoptions.rb', line 33 def bundle_id_watchapp_extension @bundle_id_watchapp_extension end |
#bundle_id_widget ⇒ Object
Returns the value of attribute bundle_id_widget.
29 30 31 |
# File 'lib/pindo/options/deployoptions.rb', line 29 def @bundle_id_widget end |
#config_json ⇒ Object
Returns the value of attribute config_json.
60 61 62 |
# File 'lib/pindo/options/deployoptions.rb', line 60 def config_json @config_json end |
#deploy_acount_id ⇒ Object
Returns the value of attribute deploy_acount_id.
36 37 38 |
# File 'lib/pindo/options/deployoptions.rb', line 36 def deploy_acount_id @deploy_acount_id end |
#deploy_group_id ⇒ Object
Returns the value of attribute deploy_group_id.
37 38 39 |
# File 'lib/pindo/options/deployoptions.rb', line 37 def deploy_group_id @deploy_group_id end |
#deploy_icloud_id ⇒ Object
Returns the value of attribute deploy_icloud_id.
38 39 40 |
# File 'lib/pindo/options/deployoptions.rb', line 38 def deploy_icloud_id @deploy_icloud_id end |
#deploy_identifier ⇒ Object
Returns the value of attribute deploy_identifier.
39 40 41 |
# File 'lib/pindo/options/deployoptions.rb', line 39 def deploy_identifier @deploy_identifier end |
#deploy_identifier_extension ⇒ Object
Returns the value of attribute deploy_identifier_extension.
47 48 49 |
# File 'lib/pindo/options/deployoptions.rb', line 47 def deploy_identifier_extension @deploy_identifier_extension end |
#deploy_identifier_extensionad ⇒ Object
Returns the value of attribute deploy_identifier_extensionad.
48 49 50 |
# File 'lib/pindo/options/deployoptions.rb', line 48 def deploy_identifier_extensionad @deploy_identifier_extensionad end |
#deploy_identifier_extensionporn ⇒ Object
Returns the value of attribute deploy_identifier_extensionporn.
49 50 51 |
# File 'lib/pindo/options/deployoptions.rb', line 49 def deploy_identifier_extensionporn @deploy_identifier_extensionporn end |
#deploy_identifier_imessage ⇒ Object
Returns the value of attribute deploy_identifier_imessage.
43 44 45 |
# File 'lib/pindo/options/deployoptions.rb', line 43 def @deploy_identifier_imessage end |
#deploy_identifier_keyboard ⇒ Object
Returns the value of attribute deploy_identifier_keyboard.
42 43 44 |
# File 'lib/pindo/options/deployoptions.rb', line 42 def deploy_identifier_keyboard @deploy_identifier_keyboard end |
#deploy_identifier_pushcontent ⇒ Object
Returns the value of attribute deploy_identifier_pushcontent.
40 41 42 |
# File 'lib/pindo/options/deployoptions.rb', line 40 def deploy_identifier_pushcontent @deploy_identifier_pushcontent end |
#deploy_identifier_pushservice ⇒ Object
Returns the value of attribute deploy_identifier_pushservice.
41 42 43 |
# File 'lib/pindo/options/deployoptions.rb', line 41 def deploy_identifier_pushservice @deploy_identifier_pushservice end |
#deploy_identifier_siri ⇒ Object
Returns the value of attribute deploy_identifier_siri.
44 45 46 |
# File 'lib/pindo/options/deployoptions.rb', line 44 def deploy_identifier_siri @deploy_identifier_siri end |
#deploy_identifier_siriui ⇒ Object
Returns the value of attribute deploy_identifier_siriui.
45 46 47 |
# File 'lib/pindo/options/deployoptions.rb', line 45 def deploy_identifier_siriui @deploy_identifier_siriui end |
#deploy_identifier_watchapp ⇒ Object
Returns the value of attribute deploy_identifier_watchapp.
50 51 52 |
# File 'lib/pindo/options/deployoptions.rb', line 50 def deploy_identifier_watchapp @deploy_identifier_watchapp end |
#deploy_identifier_watchapp_extension ⇒ Object
Returns the value of attribute deploy_identifier_watchapp_extension.
51 52 53 |
# File 'lib/pindo/options/deployoptions.rb', line 51 def deploy_identifier_watchapp_extension @deploy_identifier_watchapp_extension end |
#deploy_identifier_widget ⇒ Object
Returns the value of attribute deploy_identifier_widget.
46 47 48 |
# File 'lib/pindo/options/deployoptions.rb', line 46 def @deploy_identifier_widget end |
#deploy_repo_name ⇒ Object
Returns the value of attribute deploy_repo_name.
35 36 37 |
# File 'lib/pindo/options/deployoptions.rb', line 35 def deploy_repo_name @deploy_repo_name end |
#group_id ⇒ Object
Returns the value of attribute group_id.
19 20 21 |
# File 'lib/pindo/options/deployoptions.rb', line 19 def group_id @group_id end |
#icloud_id ⇒ Object
Returns the value of attribute icloud_id.
20 21 22 |
# File 'lib/pindo/options/deployoptions.rb', line 20 def icloud_id @icloud_id end |
#newconfuse_flag ⇒ Object
Returns the value of attribute newconfuse_flag.
57 58 59 |
# File 'lib/pindo/options/deployoptions.rb', line 57 def newconfuse_flag @newconfuse_flag end |
#oldconfuse_flag ⇒ Object
Returns the value of attribute oldconfuse_flag.
58 59 60 |
# File 'lib/pindo/options/deployoptions.rb', line 58 def oldconfuse_flag @oldconfuse_flag end |
Class Method Details
.options ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/pindo/options/deployoptions.rb', line 63 def self. [ ['--u=', 'input apple id'], ['--a=', 'input bundle id'], ['--repo=', 'input build config repo name'], ['--dev', 'use dev build mode'], ['--adhoc', 'use adhoc build mode'], ['--appstore', 'use appstore build mode'], ['--nocreate', 'no create xcode project'], ['--newconfuse', 'use version 2.0 confuse'], ['--oldconfuse', 'use version 1.0 confuse'], ['--type=class', 'input confuse type, defautl: --type=class_method_variable_protocol_property_category_pods'] ].concat(super) end |
Instance Method Details
#check_config_version ⇒ Object
294 295 296 297 298 299 300 301 302 |
# File 'lib/pindo/options/deployoptions.rb', line 294 def check_config_version() build_version = @config_json['config_version'] build_version_int = build_version.split('.').map(&:to_i) if build_version_int[0] < 1 || (build_version_int[0] ==1 && build_version_int[1] < 4) raise Informative, "config.json 版本太低,配置结构发生变化了,要求config_version 1.4.0及以上版本, 可以使用pindo deploy updateconfig 更新config.json" end end |
#get_build_type_args ⇒ Object
134 135 136 137 138 139 140 141 142 143 144 145 |
# File 'lib/pindo/options/deployoptions.rb', line 134 def get_build_type_args() args_temp = [] mode_flag = "--adhoc" if @args_dev_flag mode_flag = "--dev" end if @args_appstore_flag mode_flag = "--appstore" end args_temp << mode_flag end |
#get_bundle_id_map ⇒ Object
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/pindo/options/deployoptions.rb', line 156 def get_bundle_id_map dic = { "bundle_id": @deploy_identifier.nil? ? nil : @bundle_id, "bundle_id_pushcontent": @deploy_identifier_pushcontent.nil? ? nil : @bundle_id_pushcontent, "bundle_id_pushservice": @deploy_identifier_pushservice.nil? ? nil : @bundle_id_pushservice, "bundle_id_keyboard": @deploy_identifier_keyboard.nil? ? nil : @bundle_id_keyboard, "bundle_id_imessage": @deploy_identifier_imessage.nil? ? nil : @bundle_id_imessage, "bundle_id_extension": @deploy_identifier_extension.nil? ? nil : @bundle_id_extension, "bundle_id_siri": @deploy_identifier_siri.nil? ? nil : @bundle_id_siri, "bundle_id_siriui": @deploy_identifier_siriui.nil? ? nil : @bundle_id_siriui, "bundle_id_widget": @deploy_identifier_widget.nil? ? nil : @bundle_id_widget, "bundle_id_extensionad": @deploy_identifier_extensionad.nil? ? nil : @bundle_id_extensionad, "bundle_id_extensionporn": @deploy_identifier_extensionporn.nil? ? nil : @bundle_id_extensionporn, "bundle_id_watchapp": @deploy_identifier_watchapp.nil? ? nil : @bundle_id_watchapp, "bundle_id_watchapp_extension": @deploy_identifier_watchapp_extension.nil? ? nil : @bundle_id_watchapp_extension } # puts dic.compact return dic.compact end |
#get_confuse_type_args ⇒ Object
147 148 149 150 151 152 153 154 |
# File 'lib/pindo/options/deployoptions.rb', line 147 def get_confuse_type_args() args_temp = [] confuse_flag = "--newconfuse" if @oldconfuse_flag mode_flag = "--oldconfuse" end args_temp << mode_flag end |
#init_deploy_params ⇒ Object
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 |
# File 'lib/pindo/options/deployoptions.rb', line 178 def init_deploy_params() if !@config_json.nil? if @config_json['account_info'] && @config_json['account_info']['apple_acount_id'] @deploy_acount_id = @config_json['account_info']['apple_acount_id'] end if @config_json['app_info'] && @config_json['app_info']['app_group_id'] @deploy_group_id = @config_json['app_info']['app_group_id'] end if @config_json['app_info'] && @config_json['app_info']['app_icloud_id'] @deploy_icloud_id = @config_json['app_info']['app_icloud_id'] end if @config_json['app_info'] && @config_json['app_info']['app_identifier'] @deploy_identifier = @config_json['app_info']['app_identifier'] end if @config_json['app_info'] && @config_json['app_info']['app_identifier_pushcontent'] @deploy_identifier_pushcontent = @config_json['app_info']['app_identifier_pushcontent'] end if @config_json['app_info'] && @config_json['app_info']['app_identifier_pushservice'] @deploy_identifier_pushservice = @config_json['app_info']['app_identifier_pushservice'] end if @config_json['app_info'] && @config_json['app_info']['app_identifier_keyboard'] @deploy_identifier_keyboard = @config_json['app_info']['app_identifier_keyboard'] end if @config_json['app_info'] && @config_json['app_info']['app_identifier_imessage'] @deploy_identifier_imessage = @config_json['app_info']['app_identifier_imessage'] end if @config_json['app_info'] && @config_json['app_info']['app_identifier_siri'] @deploy_identifier_siri = @config_json['app_info']['app_identifier_siri'] end if @config_json['app_info'] && @config_json['app_info']['app_identifier_siriui'] @deploy_identifier_siriui = @config_json['app_info']['app_identifier_siriui'] end if @config_json['app_info'] && @config_json['app_info']['app_identifier_widget'] @deploy_identifier_widget = @config_json['app_info']['app_identifier_widget'] end if @config_json['app_info'] && @config_json['app_info']['app_identifier_extension'] @deploy_identifier_extension = @config_json['app_info']['app_identifier_extension'] end if @config_json['app_info'] && @config_json['app_info']['app_identifier_extensionad'] @deploy_identifier_extensionad = @config_json['app_info']['app_identifier_extensionad'] end if @config_json['app_info'] && @config_json['app_info']['app_identifier_extensionporn'] @deploy_identifier_extensionporn = @config_json['app_info']['app_identifier_extensionporn'] end if @config_json['app_info'] && @config_json['app_info']['app_identifier_watchapp'] @deploy_identifier_watchapp = @config_json['app_info']['app_identifier_watchapp'] end if @config_json['app_info'] && @config_json['app_info']['app_identifier_watchapp_extension'] @deploy_identifier_watchapp_extension = @config_json['app_info']['app_identifier_watchapp_extension'] end end if @deploy_repo_name.nil? @deploy_repo_name = @deploy_identifier end @apple_id = @deploy_acount_id @bundle_id = @deploy_identifier @group_id = @deploy_group_id @icloud_id = @deploy_icloud_id @bundle_id_pushcontent = @deploy_identifier_pushcontent @bundle_id_pushservice = @deploy_identifier_pushservice @bundle_id_keyboard = @deploy_identifier_keyboard @bundle_id_imessage = @deploy_identifier_imessage @bundle_id_siri = @deploy_identifier_siri @bundle_id_siriui = @deploy_identifier_siriui @bundle_id_widget = @deploy_identifier_widget @bundle_id_extension = @deploy_identifier_extension @bundle_id_extensionad = @deploy_identifier_extensionad @bundle_id_extensionporn = @deploy_identifier_extensionporn @bundle_id_watchapp = @deploy_identifier_watchapp @bundle_id_watchapp_extension = @deploy_identifier_watchapp_extension end |
#init_develop_params ⇒ Object
269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 |
# File 'lib/pindo/options/deployoptions.rb', line 269 def init_develop_params() unless @args_apple_id.nil? @apple_id = @args_apple_id end unless @args_bundle_id.nil? @bundle_id = @args_bundle_id.nil? ? @deploy_identifier : @args_bundle_id @group_id = @deploy_group_id.nil? ? @deploy_group_id : ("group." + @bundle_id) @icloud_id = @deploy_icloud_id.nil? ? @deploy_icloud_id : ("iCloud." + @bundle_id) @bundle_id_pushcontent = @deploy_identifier_pushcontent.nil? ? @deploy_identifier_pushcontent : (@bundle_id+".content") @bundle_id_pushservice = @deploy_identifier_pushservice.nil? ? @deploy_identifier_pushservice : (@bundle_id+".service") @bundle_id_keyboard = @deploy_identifier_keyboard.nil? ? @deploy_identifier_keyboard : (@bundle_id+".keyboard") @bundle_id_imessage = @deploy_identifier_imessage.nil? ? @deploy_identifier_imessage : (@bundle_id+".imessage") @bundle_id_siri = @deploy_identifier_siri.nil? ? @deploy_identifier_siri : (@bundle_id+".siri") @bundle_id_siriui = @deploy_identifier_siriui.nil? ? @deploy_identifier_siriui : (@bundle_id+".siriui") @bundle_id_widget = @deploy_identifier_widget.nil? ? @deploy_identifier_widget : (@bundle_id+".widget") @bundle_id_extension = @deploy_identifier_extension.nil? ? @deploy_identifier_extension : (@bundle_id+".extension") @bundle_id_extensionad = @deploy_identifier_extensionad.nil? ? @deploy_identifier_extensionad : (@bundle_id+".extensionad") @bundle_id_extensionporn = @deploy_identifier_extensionporn.nil? ? @deploy_identifier_extensionporn : (@bundle_id+".extensionporn") @bundle_id_watchapp = @deploy_identifier_watchapp.nil? ? @deploy_identifier_watchapp : (@bundle_id+".watchapp") @bundle_id_watchapp_extension = @deploy_identifier_watchapp_extension.nil? ? @deploy_identifier_watchapp_extension : (@bundle_id+".watchapp.extension") end end |
#initialize(argv) ⇒ Object
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/pindo/options/deployoptions.rb', line 82 def initialize(argv) @args_array = argv.remainder | [] @args_appconfig = argv.shift_argument || './config.json' @args_apple_id = argv.option('u') @args_bundle_id = argv.option('a') @deploy_repo_name = argv.option('repo') @args_dev_flag = argv.flag?('dev', false) @args_adhoc_flag = argv.flag?('adhoc', false) @args_appstore_flag = argv.flag?('appstore', false) @newconfuse_flag = argv.flag?('newconfuse', true) @oldconfuse_flag = argv.flag?('oldconfuse', false) @confuse_type = argv.option('type') || 'class_method_protocol_property_category_variable_pods' super @additional_args = argv.remainder! end |
#print_params_info ⇒ Object
304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 |
# File 'lib/pindo/options/deployoptions.rb', line 304 def print_params_info() puts "\n\n\n=======================================================================================" puts "***************************************************************************************\n\n" puts "Action: #{self.class.summary} \n\n" puts "config.json = #{@args_appconfig_fullname}" puts "args_apple_id = #{@args_apple_id}" puts "args_bundle_id = #{@args_bundle_id}\n\n" puts "deploy_repo_name = #{@deploy_repo_name}" puts "deploy_acount_id = #{@deploy_acount_id}" puts "deploy_group_id = #{@deploy_group_id}" puts "deploy_icloud_id = #{@deploy_icloud_id}" puts "deploy_identifier = #{@deploy_identifier}" puts "deploy_identifier_pushcontent = #{@deploy_identifier_pushcontent}" puts "deploy_identifier_pushservice = #{@deploy_identifier_pushservice}" puts "deploy_identifier_keyboard = #{@deploy_identifier_keyboard}" puts "deploy_identifier_imessage = #{@deploy_identifier_imessage}" puts "deploy_identifier_siri = #{@deploy_identifier_siri}" puts "deploy_identifier_siriui = #{@deploy_identifier_siriui}" puts "deploy_identifier_widget = #{@deploy_identifier_widget}" puts "deploy_identifier_extension = #{@deploy_identifier_extension}" puts "deploy_identifier_extensionad = #{@deploy_identifier_extensionad}" puts "deploy_identifier_extensionporn = #{@deploy_identifier_extensionporn}" puts "deploy_identifier_watchapp = #{@deploy_identifier_watchapp}" puts "deploy_identifier_watchapp_extension = #{@deploy_identifier_watchapp_extension}\n\n" puts "apple_id = #{@apple_id}" puts "bundle_id = #{@bundle_id}" puts "group_id = #{@group_id}" puts "icloud_id = #{@icloud_id}" puts "bundle_id_pushcontent = #{@bundle_id_pushcontent}" puts "bundle_id_pushservice = #{@bundle_id_pushservice}" puts "bundle_id_keyboard = #{@bundle_id_keyboard}" puts "bundle_id_imessage = #{@bundle_id_imessage}" puts "bundle_id_extension = #{@bundle_id_extension}" puts "bundle_id_siri = #{@bundle_id_siri}" puts "bundle_id_siriui = #{@bundle_id_siriui}" puts "bundle_id_widget = #{@bundle_id_widget}" puts "bundle_id_extensionad = #{@bundle_id_extensionad}" puts "bundle_id_extensionporn = #{@bundle_id_extensionporn}" puts "bundle_id_watchapp = #{@bundle_id_watchapp}" puts "bundle_id_watchapp_extension = #{@bundle_id_watchapp_extension}\n\n" puts "args_dev_flag = #{@args_dev_flag}" puts "args_adhoc_flag = #{@args_adhoc_flag}" puts "args_appstore_flag = #{@args_appstore_flag}" puts "\n***************************************************************************************" puts "=======================================================================================\n\n" end |
#validate! ⇒ Object
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
# File 'lib/pindo/options/deployoptions.rb', line 106 def validate! super if !@args_appconfig.empty? && File::file?(@args_appconfig) @args_appconfig_dir=File::(File::dirname(@args_appconfig)) @args_appconfig_fullname=File::join(@args_appconfig_dir, File::basename(@args_appconfig)) @config_json=JSON.parse(File.read(@args_appconfig_fullname)) end version = nil if !@config_json.nil? version = @config_json['config_version'] end if version.nil? # raise Informative, "Your config.json is out of date, please upgrade config.json !!!" end init_deploy_params() init_develop_params() help! 'Need input a apple id, you may input wiht --u options' if @args_apple_id.nil? && @deploy_acount_id.nil? help! 'Need input a bundle id, you may input with --a options' if @args_bundle_id.nil? && @deploy_identifier.nil? # print_params_info() end |