Class: Pindo::Command::Env::Quarkenv
- Inherits:
-
Pindo::Command::Env
- Object
- CLAide::Command
- Pindo::Command
- Pindo::Command::Env
- Pindo::Command::Env::Quarkenv
- 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
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Quarkenv
constructor
A new instance of Quarkenv.
- #run ⇒ Object
- #validate! ⇒ Object
Methods inherited from Pindo::Command
command_name, #initialize_options, run, use_cache?
Methods included from Funlog::Mixin
Methods included from Pindoconfig::Mixin
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
.options ⇒ Object
34 35 36 37 38 |
# File 'lib/pindo/command/env/quarkenv.rb', line 34 def self. [ ].concat(super) end |
Instance Method Details
#run ⇒ Object
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 |