Class: Veye::Github::Import
- Inherits:
-
BaseExecutor
- Object
- BaseExecutor
- Veye::Github::Import
- Defined in:
- lib/veye/github/import.rb
Overview
Import class includes methods to import projects from Github and will check a state of dependencies.
Class Method Summary collapse
Methods inherited from BaseExecutor
catch_request_error, filter_dependencies, get_formatter, process_dependencies, show_bulk_dependencies, show_dependencies, show_message, show_results, sort_dependencies_by_upgrade_complexity, valid_response?
Methods included from FormatHelpers
#format_exists?, #formats_attached?, #supported_format?
Class Method Details
.import_repo(api_key, repo_name, branch = 'master', filename = 'Gemfile', options = {}) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/veye/github/import.rb', line 16 def self.import_repo(api_key, repo_name, branch = 'master', filename = 'Gemfile', = {}) results = Veye::API::Github.import_repo( api_key, repo_name, branch, filename) catch_request_error(results, "Can not find repository `#{repo_name}`") show_results(@output_formats, results.data, , nil) end |