Class: Pod::Command::Tag::Create
- Inherits:
-
Pod::Command::Tag
- Object
- Pod::Command
- Pod::Command::Tag
- Pod::Command::Tag::Create
- Includes:
- Pod
- Defined in:
- lib/cocoapods-tag/command/tag/create.rb
Constant Summary collapse
- GITHUB_DOMAIN =
"github.com".freeze
- GIT_REPO =
".git".freeze
- PODSPEC_EXT =
%w[podspec podspec.json].freeze
Instance Method Summary collapse
-
#initialize(argv) ⇒ Create
constructor
A new instance of Create.
- #run ⇒ Object
Constructor Details
#initialize(argv) ⇒ Create
Returns a new instance of Create.
19 20 21 |
# File 'lib/cocoapods-tag/command/tag/create.rb', line 19 def initialize(argv) super end |
Instance Method Details
#run ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/cocoapods-tag/command/tag/create.rb', line 23 def run require 'cocoapods-tag/native/validator' # 欢迎提示 asker. # 检查本地 git 仓库 check_git_repo? # 加载 podspec load_podspec # 提示用户输入 version ask_version # 提示用户输入前缀 ask_prefix # 提示用户输入后缀 ask_suffix # 提示用户输入 commit msg 和 tag msg ask_commit_tag_msg # 询问用户推送到哪个远端仓库 ask_remote # 提示用户确认 ask_sure # 修改 podspec modify_podspec # 推送 tag 到远端 git_tag_push # 询问用户是否推送 podspec 到 spec 仓库 ask_push_podspec_to_repo # 结束提示 asker. if @error.nil? end |