Class: Pindo::Command::Env::Quarkenv

Inherits:
Pindo::Command::Env show all
Defined in:
lib/pindo/command/env/quarkenv.rb

Constant Summary

Constants inherited from Pindo::Command

DEFAULT_OPTIONS, DEFAULT_ROOT_OPTIONS

Instance Attribute Summary

Attributes inherited from Pindo::Command

#args_help_flag

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Pindo::Command

command_name, #initialize_options, run, use_cache?

Methods included from Funlog::Mixin

#pindo_log_instance

Methods included from Pindoconfig::Mixin

#pindo_single_config

Constructor Details

#initialize(argv) ⇒ Quarkenv

Returns a new instance of Quarkenv.



40
41
42
43
# File 'lib/pindo/command/env/quarkenv.rb', line 40

def initialize(argv)
    super(argv)
    @additional_args = argv.remainder!
end

Class Method Details

.optionsObject



34
35
36
37
38
# File 'lib/pindo/command/env/quarkenv.rb', line 34

def self.options
  [
        
  ].concat(super)
end

Instance Method Details

#runObject



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/pindo/command/env/quarkenv.rb', line 49

def run
    require 'pindo/module/xcode/xcode_swark_helper'

    pindo_dir = pindo_single_config.pindo_dir
    quark_git_url = pindo_single_config.deploy_quark_giturl

    # 使用封装的方法配置 Quark 环境
    success = Pindo::XcodeSwarkHelper.setup_quark_env(
        pindo_dir: pindo_dir,
        quark_git_url: quark_git_url
    )

    unless success
        raise Informative, "Quark 环境配置失败,请检查日志"
    end
end

#validate!Object



45
46
47
# File 'lib/pindo/command/env/quarkenv.rb', line 45

def validate!
    super
end