module UwsgiItClient::ClientHelpers

Public Instance Methods

add_domain(name) click to toggle source
# File lib/uwsgi_it_client/client_helpers.rb, line 25
def add_domain(name)
  post :domains, {name: name}
end
add_key(key, c_id) click to toggle source
# File lib/uwsgi_it_client/client_helpers.rb, line 21
def add_key(key, c_id)
  add_keys Array.wrap(key), c_id
end
add_keys(keys, c_id) click to toggle source
# File lib/uwsgi_it_client/client_helpers.rb, line 17
def add_keys(keys, c_id)
  post :container, {ssh_keys: keys}, id: c_id
end
company=(value) click to toggle source
# File lib/uwsgi_it_client/client_helpers.rb, line 5
def company=(value)
  post :me, {company: value}
end
delete_domain(name) click to toggle source
# File lib/uwsgi_it_client/client_helpers.rb, line 29
def delete_domain(name)
  delete :domains, {name: name}
end
password=(value) click to toggle source
# File lib/uwsgi_it_client/client_helpers.rb, line 9
def password=(value)
  post :me, {password: value}
end
set_distro(d_id, c_id) click to toggle source
# File lib/uwsgi_it_client/client_helpers.rb, line 13
def set_distro(d_id, c_id)
  post :container, {distro: d_id}, id: c_id
end