Class: Jets::Gems::Api
- Inherits:
-
Object
show all
- Includes:
- Core
- Defined in:
- lib/jets/gems/api.rb,
lib/jets/gems/api/core.rb,
lib/jets/gems/api/concern.rb
Defined Under Namespace
Modules: Concern, Core
Instance Method Summary
collapse
Methods included from Core
#account, #build_request, #delete, #get, #global_data, #http, #load_json, #ok?, #patch, #post, #request, #set_headers!, #sts, #token, #url
Instance Method Details
#check_exist(gem_name:) ⇒ Object
13
14
15
|
# File 'lib/jets/gems/api.rb', line 13
def check_exist(gem_name:)
get("gem/exist", gem_name: gem_name, ruby_folder: ruby_folder)
end
|
#download_url(gem_name:, project:) ⇒ Object
9
10
11
|
# File 'lib/jets/gems/api.rb', line 9
def download_url(gem_name:, project:)
get("gem/download", gem_name: gem_name, ruby_folder: ruby_folder, project: project)
end
|
#endpoint ⇒ Object
5
6
7
|
# File 'lib/jets/gems/api.rb', line 5
def endpoint
ENV["SG_API"] || Jets.config.gems.source || "https://api.serverlessgems.com/api/v1"
end
|
#registered_gems ⇒ Object
21
22
23
|
# File 'lib/jets/gems/api.rb', line 21
def registered_gems
get("gems/registered")
end
|
#report_missing(gem_name:) ⇒ Object
17
18
19
|
# File 'lib/jets/gems/api.rb', line 17
def report_missing(gem_name:)
get("report/missing", gem_name: gem_name, ruby_folder: ruby_folder)
end
|