Sha256: 5b0774c9488f2b0c12c45bbf41172156b853547c0e019eca7c489aed88c6a241
Contents?: true
Size: 912 Bytes
Versions: 1
Compression:
Stored size: 912 Bytes
Contents
require 'yk_command/gitlab/yk_gitlab' require 'yk_command/analyze/request' require 'yk_command/config/yk_config' module YkCommand GITLAB_CONFIG_FILE = '.YKGitlabConfig.yml'.freeze class ComponentManagePlatform < Thor include Thor::Actions no_commands do def initialize path = __dir__ @gitlab_srvice =YkGitlab.new(YkConfig.new.read_config path,GITLAB_CONFIG_FILE) @api_service = Request.new(YkConfig.new.read_config path,SERVER_ENV_CONFIG_FILE) end def update_app_data data = @gitlab_srvice.get_all_app list = data.parsed_response['shared_projects'] r = @api_service.upload_app(list) pp r end def update_component_data data = @gitlab_srvice.get_all_components list = data.parsed_response['projects'] r = @api_service.upload_component(list) pp r end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yk_command-0.5.3 | lib/yk_command/component_manage/component_manage_platform.rb |