Class: Pod::Command::JxedtCommand::Binary::Fecth

Inherits:
Pod::Command::JxedtCommand::Binary show all
Defined in:
lib/cocoapods-jxedt/command/binary/command/fetch.rb

Class Method Summary collapse

Instance Method Summary collapse

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

.optionsObject



14
15
16
# File 'lib/cocoapods-jxedt/command/binary/command/fetch.rb', line 14

def self.options
    []
end

Instance Method Details

#runObject



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