Class: YKFastlane::Init

Inherits:
SubCommandBase show all
Includes:
Helper
Defined in:
lib/actions/init.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

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

Methods inherited from SubCommandBase

banner, exit_on_failure?, subcommand_prefix

Instance Method Details

#define_fast_execute_pathObject



61
62
63
64
# File 'lib/actions/init.rb', line 61

def define_fast_execute_path()
  Helper.update_config("debug flag", Helper::K_YK_CONFIG_FASTLANE_DEBUG, options[:debug_flag] ? options[:debug_flag] : 0)
  Helper.update_config("execute path", Helper::K_YK_CONFIG_FASTLANE_SCRIPT, options[:fastfile_path].blank? ? "" : options[:fastfile_path])
end

#edit_configsObject



47
48
49
50
51
52
53
54
55
# File 'lib/actions/init.rb', line 47

def edit_configs()
  require 'actions/certificate'
  require 'actions/archive'
  puts("all_config:#{options}")

  YKFastlane::Init.new().config_execute(options)
  YKFastlane::Archive.new().platform_edit_user_execute(options)
  YKFastlane::Certificate.new().sync_git_execute(options) unless options[:profile_remote_url].blank?
end

#execute_configsObject



18
19
20
21
# File 'lib/actions/init.rb', line 18

def execute_configs()
  puts("options:#{options}")
  self.execute_config_execute(options)
end

#list_all_configsObject



68
69
70
71
72
73
74
75
76
77
# File 'lib/actions/init.rb', line 68

def list_all_configs()
  require 'actions/certificate'
  require 'actions/archive'

  YKFastlane::Certificate.new().list_details_execute()

  YKFastlane::Archive.new().list_platform_user_execute()
  Helper.display_config_yml
  YKFastlane::Archive.new().list_profiles_execute()
end