Sha256: 509dd96813989a6486d213c4eb3e0a4e7320c8facc8e7d8a1ea2a787d75c6634

Contents?: true

Size: 1.22 KB

Versions: 2

Compression:

Stored size: 1.22 KB

Contents

module Pod
    class Command
        class JxedtCommand < Command
            class Binary < JxedtCommand
                class Fecth < Binary
                    self.summary = 'fetch cache repo.'
                    self.description = <<-DESC
                    fetch cache repo.
                    DESC
                    self.command = 'fetch'
                    self.arguments = [
                    ]
                    def self.options
                        []
                    end
                    def initialize(argv)
                        super
                    end
        
                    def validate!
                        super
                    end
        
                    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
                end
            end
        end
    end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cocoapods-jxedt-0.0.14 lib/cocoapods-jxedt/command/binary/command/fetch.rb
cocoapods-jxedt-0.0.13 lib/cocoapods-jxedt/command/binary/command/fetch.rb