Class: Veye::Project::License

Inherits:
BaseExecutor show all
Defined in:
lib/veye/project/license.rb

Overview

Licence class holds commands for checking licenses in the project.

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_licenses(api_key, project_key, options) ⇒ Object



15
16
17
18
19
20
# File 'lib/veye/project/license.rb', line 15

def self.get_licenses(api_key, project_key, options)
  results = Veye::API::Project.get_licenses(api_key, project_key)
  err_msg = "Cant access a information for project `#{project_key}`."
  catch_request_error(results, err_msg)
  show_results(@output_formats, results.data, options)
end