Class: Veye::Github::Info

Inherits:
BaseExecutor show all
Defined in:
lib/veye/github/info.rb

Overview

Info class includes methods to fetch the project info on VersionEye

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

.get_repo(api_key, repo_name, options) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/veye/github/info.rb', line 15

def self.get_repo(api_key, repo_name, options)
  results = Veye::API::Github.get_repo(
    api_key, repo_name, options[:branch], options[:file]
  )
  catch_request_error(results, "Can not find repository `#{repo_name}`")
  show_results @output_formats, results.data, options
end