Class: Pod::Command::JxedtCommand::Binary::Fecth
- Inherits:
-
Pod::Command::JxedtCommand::Binary
- Object
- Pod::Command
- Pod::Command::JxedtCommand
- Pod::Command::JxedtCommand::Binary
- Pod::Command::JxedtCommand::Binary::Fecth
- Defined in:
- lib/cocoapods-jxedt/command/binary/command/fetch.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Fecth
constructor
A new instance of Fecth.
- #run ⇒ Object
- #validate! ⇒ Object
Constructor Details
#initialize(argv) ⇒ Fecth
Returns a new instance of Fecth.
17 18 19 |
# File 'lib/cocoapods-jxedt/command/binary/command/fetch.rb', line 17 def initialize(argv) super end |
Class Method Details
.options ⇒ Object
14 15 16 |
# File 'lib/cocoapods-jxedt/command/binary/command/fetch.rb', line 14 def self. [] end |
Instance Method Details
#run ⇒ Object
25 26 27 28 29 30 31 32 |
# File 'lib/cocoapods-jxedt/command/binary/command/fetch.rb', line 25 def run podfile = Pod::Config.instance.podfile help! '请检查命令执行路径,需要在Podfile文件所在目录执行' if podfile.nil? help! '你需要在cache_repo中配置正确的git仓库地址!' unless Jxedt.config.cache_repo_enabled? require 'cocoapods-jxedt/git_helper/cache_fetcher' Jxedt::CacheFetcher.fetch end |
#validate! ⇒ Object
21 22 23 |
# File 'lib/cocoapods-jxedt/command/binary/command/fetch.rb', line 21 def validate! super end |