Sha256: 8ebfc12c14f80f3c5de02221d0143a93989d84523f9f29eff72018b12e7e25cd
Contents?: true
Size: 1.53 KB
Versions: 2
Compression:
Stored size: 1.53 KB
Contents
module Lolp class Client module Project def projects get('v1/projects') end def project(name) get("v1/projects/#{name}") end def create_project(type, params = {}) post('v1/projects', params.merge(type: type)) end def delete_project(name) delete("v1/projects/#{name}") end def create_custom_domain(project_domain, custom_domain) post("v1/projects/#{project_domain}/custom-domains", domain: custom_domain) end def delete_custom_domain(project_domain, custom_domain) delete("v1/projects/#{project_domain}/custom-domains/#{custom_domain}") end def project_storage(name) get("v1/projects/#{name}/storage") end def project_environment_variables(name) get("v1/projects/#{name}/environment-variables") end alias project_envs project_environment_variables def update_project_environment_variables(name, data=[]) put("v1/projects/#{name}/environment-variables", data) end alias update_project_envs update_project_environment_variables def guest_pubkeys(project_domain) get("v1/projects/#{project_domain}/guest-pubkey") end def create_guest_pubkey(project_domain, key_name, key_value) post("v1/projects/#{project_domain}/guest-pubkey", name: key_name, key: key_value) end def delete_guest_pubkey(project_domain, key_name) delete("v1/projects/#{project_domain}/guest-pubkey/#{key_name}") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lolp-0.8.2 | lib/lolp/client/project.rb |
lolp-0.8.1 | lib/lolp/client/project.rb |