Class: YKCitool::Interface

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions, Helper
Defined in:
lib/interface.rb

Constant Summary

Constants included from Helper

Helper::K_YK_CONFIG_FASTLANE_DEBUG, Helper::K_YK_CONFIG_FASTLANE_SCRIPT, Helper::K_fastfile_remote, Helper::K_wx_access_token, Helper::YKCONFIG_PATH, Helper::YKFastlne_SCRIPT_PATH, Helper::YKRUNING_PATH, Helper::YKWECHAT_ROBOT_TOKEN

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Helper

default_certificate_git_remote, default_fast_file_remote, default_git_domain, display_config_yml, fastlane_script, load_config_value, load_config_yml, update_config

Methods included from Tools

UI, clone_git_repository, display_yml, git_commit, git_pull, green, load_yml, load_yml_value, notify_message_to_enterprise_wechat, over_write_yml_dict, show_prompt, update_yml, yk_ask, yk_ask_with_answers

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/interface.rb', line 21

def self.exit_on_failure?
  true
end

Instance Method Details

#uninstallObject



58
59
60
61
62
# File 'lib/interface.rb', line 58

def uninstall()
  require 'actions/YKFastlaneExecute'
  code = YKCitool::YKFastlaneExecute.executeCommand("gem uninstall ykcitool -a -x", "", "")
  exit! code unless code == 0
end

#updateObject



50
51
52
53
54
# File 'lib/interface.rb', line 50

def update()
  require 'actions/YKFastlaneExecute'
  code = YKCitool::YKFastlaneExecute.executeCommand("gem uninstall ykcitool -a -x", "gem install ykcitool", "")
  exit! code unless code == 0
end