Class: Pindo::Command::Env::Swarkenv
Constant Summary
DEFAULT_OPTIONS, DEFAULT_ROOT_OPTIONS
Instance Attribute Summary
#args_help_flag
Class Method Summary
collapse
Instance Method Summary
collapse
command_name, #initialize_options, run, use_cache?
#pindo_log_instance
#pindo_single_config
Constructor Details
#initialize(argv) ⇒ Swarkenv
41
42
43
44
|
# File 'lib/pindo/command/env/swarkenv.rb', line 41
def initialize(argv)
super(argv)
@additional_args = argv.remainder!
end
|
Class Method Details
.options ⇒ Object
35
36
37
38
39
|
# File 'lib/pindo/command/env/swarkenv.rb', line 35
def self.options
[
].concat(super)
end
|
Instance Method Details
#run ⇒ Object
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# File 'lib/pindo/command/env/swarkenv.rb', line 50
def run
require 'pindo/module/xcode/xcode_swark_helper'
pindo_dir = pindo_single_config.pindo_dir
swark_git_url = pindo_single_config.deploy_swark_giturl
success = Pindo::XcodeSwarkHelper.setup_swark_env(
pindo_dir: pindo_dir,
swark_git_url: swark_git_url
)
unless success
raise Informative, "Swark 环境配置失败,请检查日志"
end
end
|
#validate! ⇒ Object
46
47
48
|
# File 'lib/pindo/command/env/swarkenv.rb', line 46
def validate!
super
end
|