Sha256: 1692c29b360738b70f883a406dbefec4217d09719056a3a796f4256473e91caa

Contents?: true

Size: 1.32 KB

Versions: 7

Compression:

Stored size: 1.32 KB

Contents

module Pod
    class Command
        class JxedtCommand < Command
            class Binary < JxedtCommand
                class Fecth < Binary
                    self.summary = '获取远程更新'
                    self.description = <<-DESC
                    获取远程更新\n
                    更新远程仓库到本地,本地目录会放在'~/.cocoapods-jxedt/'
                    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

7 entries across 7 versions & 1 rubygems

Version Path
cocoapods-jxedt-0.0.21 lib/cocoapods-jxedt/command/binary/command/fetch.rb
cocoapods-jxedt-0.0.20 lib/cocoapods-jxedt/command/binary/command/fetch.rb
cocoapods-jxedt-0.0.19 lib/cocoapods-jxedt/command/binary/command/fetch.rb
cocoapods-jxedt-0.0.18 lib/cocoapods-jxedt/command/binary/command/fetch.rb
cocoapods-jxedt-0.0.17 lib/cocoapods-jxedt/command/binary/command/fetch.rb
cocoapods-jxedt-0.0.16 lib/cocoapods-jxedt/command/binary/command/fetch.rb
cocoapods-jxedt-0.0.15 lib/cocoapods-jxedt/command/binary/command/fetch.rb